var Z2=Object.defineProperty;var Q2=(e,t,n)=>t in e?Z2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var q=(e,t,n)=>(Q2(e,typeof t!="symbol"?t+"":t,n),n);function J2(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ym={exports:{}},tc={},Cm={exports:{}},J={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ka=Symbol.for("react.element"),ex=Symbol.for("react.portal"),tx=Symbol.for("react.fragment"),nx=Symbol.for("react.strict_mode"),rx=Symbol.for("react.profiler"),ox=Symbol.for("react.provider"),ix=Symbol.for("react.context"),ax=Symbol.for("react.forward_ref"),sx=Symbol.for("react.suspense"),lx=Symbol.for("react.memo"),cx=Symbol.for("react.lazy"),lh=Symbol.iterator;function ux(e){return e===null||typeof e!="object"?null:(e=lh&&e[lh]||e["@@iterator"],typeof e=="function"?e:null)}var wm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sm=Object.assign,_m={};function si(e,t,n){this.props=e,this.context=t,this.refs=_m,this.updater=n||wm}si.prototype.isReactComponent={};si.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};si.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Om(){}Om.prototype=si.prototype;function wf(e,t,n){this.props=e,this.context=t,this.refs=_m,this.updater=n||wm}var Sf=wf.prototype=new Om;Sf.constructor=wf;Sm(Sf,si.prototype);Sf.isPureReactComponent=!0;var ch=Array.isArray,km=Object.prototype.hasOwnProperty,_f={current:null},Em={key:!0,ref:!0,__self:!0,__source:!0};function Mm(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)km.call(t,r)&&!Em.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,P=I[se];if(0>>1;seo(G,H))ko(ee,G)?(I[se]=ee,I[k]=H,se=k):(I[se]=G,I[D]=H,se=D);else if(ko(ee,H))I[se]=ee,I[k]=H,se=k;else break e}}return U}function o(I,U){var H=I.sortIndex-U.sortIndex;return H!==0?H:I.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],u=[],f=1,p=null,d=3,g=!1,y=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(I){for(var U=n(u);U!==null;){if(U.callback===null)r(u);else if(U.startTime<=I)r(u),U.sortIndex=U.expirationTime,t(c,U);else break;U=n(u)}}function w(I){if(C=!1,v(I),!y)if(n(c)!==null)y=!0,Rt(S);else{var U=n(u);U!==null&&We(w,U.startTime-I)}}function S(I,U){y=!1,C&&(C=!1,x(T),T=-1),g=!0;var H=d;try{for(v(U),p=n(c);p!==null&&(!(p.expirationTime>U)||I&&!Q());){var se=p.callback;if(typeof se=="function"){p.callback=null,d=p.priorityLevel;var P=se(p.expirationTime<=U);U=e.unstable_now(),typeof P=="function"?p.callback=P:p===n(c)&&r(c),v(U)}else r(c);p=n(c)}if(p!==null)var R=!0;else{var D=n(u);D!==null&&We(w,D.startTime-U),R=!1}return R}finally{p=null,d=H,g=!1}}var E=!1,j=null,T=-1,z=5,$=-1;function Q(){return!(e.unstable_now()-$I||125se?(I.sortIndex=H,t(u,I),n(c)===null&&I===n(u)&&(C?(x(T),T=-1):C=!0,We(w,H-se))):(I.sortIndex=P,t(c,I),y||g||(y=!0,Rt(S))),I},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(I){var U=d;return function(){var H=d;d=U;try{return I.apply(this,arguments)}finally{d=H}}}})(Im);Nm.exports=Im;var Cx=Nm.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var wx=b,At=Cx;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=Object.prototype.hasOwnProperty,Sx=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,dh={},fh={};function _x(e){return td.call(fh,e)?!0:td.call(dh,e)?!1:Sx.test(e)?fh[e]=!0:(dh[e]=!0,!1)}function Ox(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kx(e,t,n,r){if(t===null||typeof t>"u"||Ox(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){nt[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];nt[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){nt[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){nt[e]=new pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){nt[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){nt[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){nt[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){nt[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){nt[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var kf=/[\-:]([a-z])/g;function Ef(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(kf,Ef);nt[t]=new pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(kf,Ef);nt[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(kf,Ef);nt[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){nt[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});nt.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){nt[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mf(e,t,n,r){var o=nt.hasOwnProperty(t)?nt[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var c=` `+o[a].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{lu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ji(e):""}function Ex(e){switch(e.tag){case 5:return ji(e.type);case 16:return ji("Lazy");case 13:return ji("Suspense");case 19:return ji("SuspenseList");case 0:case 2:case 15:return e=cu(e.type,!1),e;case 11:return e=cu(e.type.render,!1),e;case 1:return e=cu(e.type,!0),e;default:return""}}function id(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case go:return"Fragment";case mo:return"Portal";case nd:return"Profiler";case jf:return"StrictMode";case rd:return"Suspense";case od:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rm:return(e.displayName||"Context")+".Consumer";case Lm:return(e._context.displayName||"Context")+".Provider";case Tf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Af:return t=e.displayName||null,t!==null?t:id(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return id(e(t))}catch{}}return null}function Mx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return id(t);case 8:return t===jf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jx(e){var t=Dm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ts(e){e._valueTracker||(e._valueTracker=jx(e))}function Bm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Dm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ad(e,t){var n=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zm(e,t){t=t.checked,t!=null&&Mf(e,"checked",t,!1)}function sd(e,t){zm(e,t);var n=pr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ld(e,t.type,n):t.hasOwnProperty("defaultValue")&&ld(e,t.type,pr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ld(e,t,n){(t!=="number"||rl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ti=Array.isArray;function No(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ns.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ki(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Li={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Tx=["Webkit","ms","Moz","O"];Object.keys(Li).forEach(function(e){Tx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Li[t]=Li[e]})});function Wm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Li.hasOwnProperty(e)&&Li[e]?(""+t).trim():t+"px"}function Vm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ax=je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dd(e,t){if(t){if(Ax[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function fd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pd=null;function Nf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hd=null,Io=null,Po=null;function xh(e){if(e=ja(e)){if(typeof hd!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ac(t),hd(e.stateNode,e.type,t))}}function Gm(e){Io?Po?Po.push(e):Po=[e]:Io=e}function Km(){if(Io){var e=Io,t=Po;if(Po=Io=null,xh(e),t)for(e=0;e>>=0,e===0?32:31-(Ux(e)/Hx|0)|0}var rs=64,os=4194304;function Ai(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Ai(l):(i&=a,i!==0&&(r=Ai(i)))}else a=n&~o,a!==0?r=Ai(a):i!==0&&(r=Ai(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ea(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-an(t),e[t]=n}function Kx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=$i),Eh=" ",Mh=!1;function pg(e,t){switch(e){case"keyup":return C4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vo=!1;function S4(e,t){switch(e){case"compositionend":return hg(t);case"keypress":return t.which!==32?null:(Mh=!0,Eh);case"textInput":return e=t.data,e===Eh&&Mh?null:e;default:return null}}function _4(e,t){if(vo)return e==="compositionend"||!zf&&pg(e,t)?(e=dg(),Ds=$f=Xn=null,vo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nh(n)}}function xg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bg(){for(var e=window,t=rl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=rl(e.document)}return t}function Ff(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function I4(e){var t=bg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xg(n.ownerDocument.documentElement,n)){if(r!==null&&Ff(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ih(n,i);var a=Ih(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xo=null,yd=null,Bi=null,Cd=!1;function Ph(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cd||xo==null||xo!==rl(r)||(r=xo,"selectionStart"in r&&Ff(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Bi&&Ji(Bi,r)||(Bi=r,r=ul(yd,"onSelect"),0Co||(e.current=Ed[Co],Ed[Co]=null,Co--)}function xe(e,t){Co++,Ed[Co]=e.current,e.current=t}var hr={},lt=xr(hr),yt=xr(!1),Fr=hr;function Wo(e,t){var n=e.type.contextTypes;if(!n)return hr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ct(e){return e=e.childContextTypes,e!=null}function fl(){we(yt),we(lt)}function Fh(e,t,n){if(lt.current!==hr)throw Error(A(168));xe(lt,t),xe(yt,n)}function Mg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(A(108,Mx(e)||"Unknown",o));return je({},n,r)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hr,Fr=lt.current,xe(lt,e),xe(yt,yt.current),!0}function Uh(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Mg(e,t,Fr),r.__reactInternalMemoizedMergedChildContext=e,we(yt),we(lt),xe(lt,e)):we(yt),xe(yt,n)}var kn=null,sc=!1,Su=!1;function jg(e){kn===null?kn=[e]:kn.push(e)}function V4(e){sc=!0,jg(e)}function br(){if(!Su&&kn!==null){Su=!0;var e=0,t=de;try{var n=kn;for(de=1;e>=a,o-=a,Tn=1<<32-an(t)+o|n<T?(z=j,j=null):z=j.sibling;var $=d(x,j,v[T],w);if($===null){j===null&&(j=z);break}e&&j&&$.alternate===null&&t(x,j),m=i($,m,T),E===null?S=$:E.sibling=$,E=$,j=z}if(T===v.length)return n(x,j),_e&&Mr(x,T),S;if(j===null){for(;TT?(z=j,j=null):z=j.sibling;var Q=d(x,j,$.value,w);if(Q===null){j===null&&(j=z);break}e&&j&&Q.alternate===null&&t(x,j),m=i(Q,m,T),E===null?S=Q:E.sibling=Q,E=Q,j=z}if($.done)return n(x,j),_e&&Mr(x,T),S;if(j===null){for(;!$.done;T++,$=v.next())$=p(x,$.value,w),$!==null&&(m=i($,m,T),E===null?S=$:E.sibling=$,E=$);return _e&&Mr(x,T),S}for(j=r(x,j);!$.done;T++,$=v.next())$=g(j,x,T,$.value,w),$!==null&&(e&&$.alternate!==null&&j.delete($.key===null?T:$.key),m=i($,m,T),E===null?S=$:E.sibling=$,E=$);return e&&j.forEach(function(Se){return t(x,Se)}),_e&&Mr(x,T),S}function _(x,m,v,w){if(typeof v=="object"&&v!==null&&v.type===go&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case es:e:{for(var S=v.key,E=m;E!==null;){if(E.key===S){if(S=v.type,S===go){if(E.tag===7){n(x,E.sibling),m=o(E,v.props.children),m.return=x,x=m;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Gn&&Vh(S)===E.type){n(x,E.sibling),m=o(E,v.props),m.ref=wi(x,E,v),m.return=x,x=m;break e}n(x,E);break}else t(x,E);E=E.sibling}v.type===go?(m=$r(v.props.children,x.mode,w,v.key),m.return=x,x=m):(w=Gs(v.type,v.key,v.props,null,x.mode,w),w.ref=wi(x,m,v),w.return=x,x=w)}return a(x);case mo:e:{for(E=v.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(x,m.sibling),m=o(m,v.children||[]),m.return=x,x=m;break e}else{n(x,m);break}else t(x,m);m=m.sibling}m=Au(v,x.mode,w),m.return=x,x=m}return a(x);case Gn:return E=v._init,_(x,m,E(v._payload),w)}if(Ti(v))return y(x,m,v,w);if(vi(v))return C(x,m,v,w);ds(x,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(x,m.sibling),m=o(m,v),m.return=x,x=m):(n(x,m),m=Tu(v,x.mode,w),m.return=x,x=m),a(x)):n(x,m)}return _}var Go=Ig(!0),Pg=Ig(!1),gl=xr(null),vl=null,_o=null,Vf=null;function Gf(){Vf=_o=vl=null}function Kf(e){var t=gl.current;we(gl),e._currentValue=t}function Td(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ro(e,t){vl=e,Vf=_o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vt=!0),e.firstContext=null)}function Vt(e){var t=e._currentValue;if(Vf!==e)if(e={context:e,memoizedValue:t,next:null},_o===null){if(vl===null)throw Error(A(308));_o=e,vl.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Pr=null;function Yf(e){Pr===null?Pr=[e]:Pr.push(e)}function Lg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Yf(t)):(n.next=o.next,o.next=n),t.interleaved=n,Rn(e,r)}function Rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kn=!1;function qf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Rn(e,n)}return o=r.interleaved,o===null?(t.next=t,Yf(r)):(t.next=o.next,o.next=t),r.interleaved=t,Rn(e,n)}function zs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pf(e,n)}}function Gh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xl(e,t,n,r){var o=e.updateQueue;Kn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==a&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=c))}if(i!==null){var p=o.baseState;a=0,f=u=c=null,l=i;do{var d=l.lane,g=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,C=l;switch(d=t,g=n,C.tag){case 1:if(y=C.payload,typeof y=="function"){p=y.call(g,p,d);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=C.payload,d=typeof y=="function"?y.call(g,p,d):y,d==null)break e;p=je({},p,d);break e;case 2:Kn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else g={eventTime:g,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=g,c=p):f=f.next=g,a|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(!0);if(f===null&&(c=p),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Wr|=a,e.lanes=a,e.memoizedState=p}}function Kh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ou.transition;Ou.transition={};try{e(!1),t()}finally{de=n,Ou.transition=r}}function Jg(){return Gt().memoizedState}function q4(e,t,n){var r=sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ev(e))tv(t,n);else if(n=Lg(e,t,n,r),n!==null){var o=dt();sn(n,e,r,o),nv(n,t,r)}}function X4(e,t,n){var r=sr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ev(e))tv(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,un(l,a)){var c=t.interleaved;c===null?(o.next=o,Yf(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=Lg(e,t,o,r),n!==null&&(o=dt(),sn(n,e,r,o),nv(n,t,r))}}function ev(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function tv(e,t){zi=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pf(e,n)}}var Cl={readContext:Vt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Z4={readContext:Vt,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:qh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Us(4194308,4,Yg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){return Us(4,2,e,t)},useMemo:function(e,t){var n=hn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=hn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=q4.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:Yh,useDebugValue:rp,useDeferredValue:function(e){return hn().memoizedState=e},useTransition:function(){var e=Yh(!1),t=e[0];return e=Y4.bind(null,e[1]),hn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,o=hn();if(_e){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ke===null)throw Error(A(349));Hr&30||zg(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qh(Ug.bind(null,r,i,e),[e]),r.flags|=2048,sa(9,Fg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=hn(),t=Ke.identifierPrefix;if(_e){var n=An,r=Tn;n=(r&~(1<<32-an(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ia++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[mn]=t,e[na]=r,fv(e,t,!1,!1),t.stateNode=e;e:{switch(a=fd(n,r),n){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;oqo&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304)}else{if(!r)if(e=bl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!_e)return at(t),null}else 2*Re()-i.renderingStartTime>qo&&n!==1073741824&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Re(),t.sibling=null,n=Ee.current,xe(Ee,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return cp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?kt&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function i7(e,t){switch(Hf(t),t.tag){case 1:return Ct(t.type)&&fl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ko(),we(yt),we(lt),Qf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zf(t),null;case 13:if(we(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(Ee),null;case 4:return Ko(),null;case 10:return Kf(t.type._context),null;case 22:case 23:return cp(),null;case 24:return null;default:return null}}var ps=!1,st=!1,a7=typeof WeakSet=="function"?WeakSet:Set,B=null;function Oo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function Bd(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var a0=!1;function s7(e,t){if(wd=ll,e=bg(),Ff(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,f=0,p=e,d=null;t:for(;;){for(var g;p!==n||o!==0&&p.nodeType!==3||(l=a+o),p!==i||r!==0&&p.nodeType!==3||(c=a+r),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)d=p,p=g;for(;;){if(p===e)break t;if(d===n&&++u===o&&(l=a),d===i&&++f===r&&(c=a),(g=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sd={focusedElem:e,selectionRange:n},ll=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var C=y.memoizedProps,_=y.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?C:Jt(t.type,C),_);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(w){Ae(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return y=a0,a0=!1,y}function Fi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Bd(t,n,i)}o=o.next}while(o!==r)}}function uc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function zd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function mv(e){var t=e.alternate;t!==null&&(e.alternate=null,mv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[na],delete t[kd],delete t[H4],delete t[W4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gv(e){return e.tag===5||e.tag===3||e.tag===4}function s0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dl));else if(r!==4&&(e=e.child,e!==null))for(Fd(e,t,n),e=e.sibling;e!==null;)Fd(e,t,n),e=e.sibling}function Ud(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ud(e,t,n),e=e.sibling;e!==null;)Ud(e,t,n),e=e.sibling}var Je=null,en=!1;function Wn(e,t,n){for(n=n.child;n!==null;)vv(e,t,n),n=n.sibling}function vv(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(nc,n)}catch{}switch(n.tag){case 5:st||Oo(n,t);case 6:var r=Je,o=en;Je=null,Wn(e,t,n),Je=r,en=o,Je!==null&&(en?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(en?(e=Je,n=n.stateNode,e.nodeType===8?wu(e.parentNode,n):e.nodeType===1&&wu(e,n),Zi(e)):wu(Je,n.stateNode));break;case 4:r=Je,o=en,Je=n.stateNode.containerInfo,en=!0,Wn(e,t,n),Je=r,en=o;break;case 0:case 11:case 14:case 15:if(!st&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Bd(n,t,a),o=o.next}while(o!==r)}Wn(e,t,n);break;case 1:if(!st&&(Oo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ae(n,t,l)}Wn(e,t,n);break;case 21:Wn(e,t,n);break;case 22:n.mode&1?(st=(r=st)||n.memoizedState!==null,Wn(e,t,n),st=r):Wn(e,t,n);break;default:Wn(e,t,n)}}function l0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new a7),t.forEach(function(r){var o=g7.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Zt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*c7(r/1960))-r,10e?16:e,Zn===null)var r=!1;else{if(e=Zn,Zn=null,_l=0,ne&6)throw Error(A(331));var o=ne;for(ne|=4,B=e.current;B!==null;){var i=B,a=i.child;if(B.flags&16){var l=i.deletions;if(l!==null){for(var c=0;cRe()-sp?Rr(e,0):ap|=n),wt(e,t)}function Ov(e,t){t===0&&(e.mode&1?(t=os,os<<=1,!(os&130023424)&&(os=4194304)):t=1);var n=dt();e=Rn(e,t),e!==null&&(Ea(e,t,n),wt(e,n))}function m7(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ov(e,n)}function g7(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Ov(e,n)}var kv;kv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||yt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,r7(e,t,n);vt=!!(e.flags&131072)}else vt=!1,_e&&t.flags&1048576&&Tg(t,ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var o=Wo(t,lt.current);Ro(t,n),o=ep(null,t,r,e,o,n);var i=tp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(r)?(i=!0,pl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,qf(t),o.updater=cc,t.stateNode=o,o._reactInternals=t,Nd(t,r,e,n),t=Ld(null,t,r,!0,i,n)):(t.tag=0,_e&&i&&Uf(t),ut(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=x7(r),e=Jt(r,e),o){case 0:t=Pd(null,t,r,e,n);break e;case 1:t=r0(null,t,r,e,n);break e;case 11:t=t0(null,t,r,e,n);break e;case 14:t=n0(null,t,r,Jt(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Pd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),r0(e,t,r,o,n);case 3:e:{if(cv(t),e===null)throw Error(A(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Rg(e,t),xl(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Yo(Error(A(423)),t),t=o0(e,t,r,n,o);break e}else if(r!==o){o=Yo(Error(A(424)),t),t=o0(e,t,r,n,o);break e}else for(Mt=or(t.stateNode.containerInfo.firstChild),Tt=t,_e=!0,tn=null,n=Pg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===o){t=$n(e,t,n);break e}ut(e,t,r,n)}t=t.child}return t;case 5:return $g(t),e===null&&jd(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,_d(r,o)?a=null:i!==null&&_d(r,i)&&(t.flags|=32),lv(e,t),ut(e,t,a,n),t.child;case 6:return e===null&&jd(t),null;case 13:return uv(e,t,n);case 4:return Xf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Go(t,null,r,n):ut(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),t0(e,t,r,o,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,xe(gl,r._currentValue),r._currentValue=a,i!==null)if(un(i.value,a)){if(i.children===o.children&&!yt.current){t=$n(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Nn(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Td(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(A(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Td(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ut(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ro(t,n),o=Vt(o),r=r(o),t.flags|=1,ut(e,t,r,n),t.child;case 14:return r=t.type,o=Jt(r,t.pendingProps),o=Jt(r.type,o),n0(e,t,r,o,n);case 15:return av(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jt(r,o),Hs(e,t),t.tag=1,Ct(r)?(e=!0,pl(t)):e=!1,Ro(t,n),rv(t,r,o),Nd(t,r,o,n),Ld(null,t,r,!0,e,n);case 19:return dv(e,t,n);case 22:return sv(e,t,n)}throw Error(A(156,t.tag))};function Ev(e,t){return eg(e,t)}function v7(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,r){return new v7(e,t,n,r)}function dp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function x7(e){if(typeof e=="function")return dp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tf)return 11;if(e===Af)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=Ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gs(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")dp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case go:return $r(n.children,o,i,t);case jf:a=8,o|=8;break;case nd:return e=Ht(12,n,t,o|2),e.elementType=nd,e.lanes=i,e;case rd:return e=Ht(13,n,t,o),e.elementType=rd,e.lanes=i,e;case od:return e=Ht(19,n,t,o),e.elementType=od,e.lanes=i,e;case $m:return fc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lm:a=10;break e;case Rm:a=9;break e;case Tf:a=11;break e;case Af:a=14;break e;case Gn:a=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ht(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $r(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function fc(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=$m,e.lanes=n,e.stateNode={isHidden:!1},e}function Tu(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function Au(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function b7(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=du(0),this.expirationTimes=du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function fp(e,t,n,r,o,i,a,l,c){return e=new b7(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qf(i),e}function y7(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Av)}catch(e){console.error(e)}}Av(),Am.exports=Nt;var Aa=Am.exports;const gs=ec(Aa);var Nv,Iv,g0=Aa;Iv=g0.createRoot,Nv=g0.hydrateRoot;function Ie(){if(!window)throw new Error("Window object isn't available");return window}function Pv(e){const t={...e,type:`ssr-${e.type}`};return Ie().parent.postMessage(t,"*")}function ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N7(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function I7(e){var t=N7(e,"string");return typeof t=="symbol"?t:String(t)}var gn=Symbol("mobx-stored-annotations");function yn(e){function t(n,r){La(n,r,e)}return Object.assign(t,e)}function La(e,t,n){In(e,gn)||Ia(e,gn,Zo({},e[gn])),U7(n)||(e[gn][t]=n)}function P7(e){return In(e,gn)||Ia(e,gn,Zo({},e[gn])),e[gn]}var K=Symbol("mobx administration"),Ra=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=oe.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return c3(this)},t.reportChanged=function(){xt(),u3(this),N.stateVersion=N.stateVersionr&&(r=l.dependenciesState_)}for(n.length=o,e.newObserving_=null,i=t.length;i--;){var c=t[i];c.diffValue_===0&&s3(c,e),c.diffValue_=0}for(;o--;){var u=n[o];u.diffValue_===1&&(u.diffValue_=0,Ob(u,e))}r!==oe.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Xd(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)s3(t[n],e);e.dependenciesState_=oe.NOT_TRACKING_}function o3(e){var t=di();try{return e()}finally{cr(t)}}function di(){var e=N.trackingDerivation;return N.trackingDerivation=null,e}function cr(e){N.trackingDerivation=e}function Do(e){var t=N.allowStateReads;return N.allowStateReads=e,t}function ur(e){N.allowStateReads=e}function i3(e){if(e.dependenciesState_!==oe.UP_TO_DATE_){e.dependenciesState_=oe.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=oe.UP_TO_DATE_}}var Ys=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},qs=!0,a3=!1,N=function(){var e=gp();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(qs=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Ys().version&&(qs=!1),qs?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Ys):(setTimeout(function(){a3||ie(35)},1),new Ys)}();function _b(){if((N.pendingReactions.length||N.inBatch||N.isRunningReactions)&&ie(36),a3=!0,qs){var e=gp();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),N=new Ys}}function Ob(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function s3(e,t){e.observers_.delete(t),e.observers_.size===0&&l3(e)}function l3(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,N.pendingUnobservations.push(e))}function xt(){N.inBatch++}function bt(){if(--N.inBatch===0){d3();for(var e=N.pendingUnobservations,t=0;t0&&l3(e),!1)}function u3(e){e.lowestObserverState_!==oe.STALE_&&(e.lowestObserverState_=oe.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===oe.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=oe.STALE_}))}function kb(e){e.lowestObserverState_!==oe.STALE_&&(e.lowestObserverState_=oe.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===oe.POSSIBLY_STALE_?t.dependenciesState_=oe.STALE_:t.dependenciesState_===oe.UP_TO_DATE_&&(e.lowestObserverState_=oe.UP_TO_DATE_)}))}function Eb(e){e.lowestObserverState_===oe.UP_TO_DATE_&&(e.lowestObserverState_=oe.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===oe.UP_TO_DATE_&&(t.dependenciesState_=oe.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ei=function(){function e(n,r,o,i){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=oe.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Tl.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=o,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,N.pendingReactions.push(this),d3())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){xt(),this.isScheduled_=!1;var r=N.trackingContext;if(N.trackingContext=this,qd(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(o){this.reportExceptionInDerivation_(o)}}N.trackingContext=r,bt()}},t.track=function(r){if(!this.isDisposed_){xt(),this.isRunning_=!0;var o=N.trackingContext;N.trackingContext=this;var i=r3(this,r,void 0);N.trackingContext=o,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Xd(this),Ks(i)&&this.reportExceptionInDerivation_(i.cause),bt()}},t.reportExceptionInDerivation_=function(r){var o=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(N.disableErrorBoundaries)throw r;var i="[mobx] uncaught error in '"+this+"'";N.suppressReactionErrors||console.error(i,r),N.globalReactionErrorHandlers.forEach(function(a){return a(r,o)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(xt(),Xd(this),bt()))},t.getDisposer_=function(r){var o=this,i=function a(){o.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",a)};return r==null||r.addEventListener==null||r.addEventListener("abort",i),i[K]=this,i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},e}(),Mb=100,Zd=function(t){return t()};function d3(){N.inBatch>0||N.isRunningReactions||Zd(jb)}function jb(){N.isRunningReactions=!0;for(var e=N.pendingReactions,t=0;e.length>0;){++t===Mb&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r0&&(t.dependencies=Vb(e.observing_).map(C3)),t}function Vb(e){return Array.from(new Set(e))}var Gb=0;function w3(){this.message="FLOW_CANCELLED"}w3.prototype=Object.create(Error.prototype);var C0=Vv("flow"),Kb=Vv("flow.bound",{bound:!0}),da=Object.assign(function(t,n){if(Gr(n))return La(t,n,C0);var r=t,o=r.name||"",i=function(){var l=this,c=arguments,u=++Gb,f=jo(o+" - runid: "+u+" - init",r).apply(l,c),p,d=void 0,g=new Promise(function(y,C){var _=0;p=C;function x(w){d=void 0;var S;try{S=jo(o+" - runid: "+u+" - yield "+_++,f.next).call(f,w)}catch(E){return C(E)}v(S)}function m(w){d=void 0;var S;try{S=jo(o+" - runid: "+u+" - yield "+_++,f.throw).call(f,w)}catch(E){return C(E)}v(S)}function v(w){if(dn(w==null?void 0:w.then)){w.then(v,C);return}return w.done?y(w.value):(d=Promise.resolve(w.value),d.then(x,m))}x(void 0)});return g.cancel=jo(o+" - runid: "+u+" - cancel",function(){try{d&&w0(d);var y=f.return(void 0),C=Promise.resolve(y.value);C.then(Eo,Eo),w0(C),p(new w3)}catch(_){p(_)}}),g};return i.isMobXFlow=!0,i},C0);da.bound=yn(Kb);function w0(e){dn(e.cancel)&&e.cancel()}function Il(e){return(e==null?void 0:e.isMobXFlow)===!0}function Yb(e,t){return e?Va(e)||!!e[K]||xp(e)||Nl(e)||za(e):!1}function wp(e){return Yb(e)}function qb(e){if(Va(e))return e[K].ownKeys_();ie(38)}function ys(e,t,n){return e.set(t,n),n}function fo(e,t){if(e==null||typeof e!="object"||e instanceof Date||!wp(e))return e;if(wb(e)||za(e))return fo(e.get(),t);if(t.has(e))return t.get(e);if(Ha(e)){var n=ys(t,e,new Array(e.length));return e.forEach(function(a,l){n[l]=fo(a,t)}),n}if(Jr(e)){var r=ys(t,e,new Set);return e.forEach(function(a){r.add(fo(a,t))}),r}if(wr(e)){var o=ys(t,e,new Map);return e.forEach(function(a,l){o.set(l,fo(a,t))}),o}else{var i=ys(t,e,{});return qb(e).forEach(function(a){Na.propertyIsEnumerable.call(e,a)&&(i[a]=fo(e[a],t))}),i}}function To(e,t){return fo(e,new Map)}function En(e,t){t===void 0&&(t=void 0),xt();try{return e.apply(t)}finally{bt()}}function ro(e){return e[K]}var Xb={has:function(t,n){return ro(t).has_(n)},get:function(t,n){return ro(t).get_(n)},set:function(t,n,r){var o;return Gr(n)?(o=ro(t).set_(n,r,!0))!=null?o:!0:!1},deleteProperty:function(t,n){var r;return Gr(n)?(r=ro(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var o;return(o=ro(t).defineProperty_(n,r))!=null?o:!0},ownKeys:function(t){return ro(t).ownKeys_()},preventExtensions:function(t){ie(13)}};function Zb(e,t){var n,r;return $v(),e=Wa(e,t),(r=(n=e[K]).proxy_)!=null?r:n.proxy_=new Proxy(e,Xb)}function zt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Fa(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Dv(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Ft(e,t){var n=di();try{for(var r=[].concat(e.interceptors_||[]),o=0,i=r.length;o0}function Ua(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Dv(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function cn(e,t){var n=di(),r=e.changeListeners_;if(r){r=r.slice();for(var o=0,i=r.length;o0?r.map(this.dehancer):r},t.intercept_=function(r){return Fa(this,r)},t.observe_=function(r,o){return o===void 0&&(o=!1),o&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Ua(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&ie("Out of range: "+r);var o=this.values_.length;if(r!==o)if(r>o){for(var i=new Array(r-o),a=0;a0&&I3(r+o+1)},t.spliceWithArray_=function(r,o,i){var a=this;this.atom_;var l=this.values_.length;if(r===void 0?r=0:r>l?r=l:r<0&&(r=Math.max(0,l+r)),arguments.length===1?o=l-r:o==null?o=0:o=Math.max(0,Math.min(o,l-r)),i===void 0&&(i=Kd),zt(this)){var c=Ft(this,{object:this.proxy_,type:S0,index:r,removedCount:o,added:i});if(!c)return Kd;o=c.removedCount,i=c.added}if(i=i.length===0?i:i.map(function(p){return a.enhancer_(p,void 0)}),this.legacyMode_){var u=i.length-o;this.updateArrayLength_(l,u)}var f=this.spliceItemsIntoValues_(r,o,i);return(o!==0||i.length!==0)&&this.notifyArraySplice_(r,i,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(r,o,i){if(i.length=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,o){var i=this.values_;if(this.legacyMode_&&r>i.length&&ie(17,r,i.length),r2?r-2:0),i=2;i-1?(this.splice(r,1),!0):!1}};He("concat",zn);He("flat",zn);He("includes",zn);He("indexOf",zn);He("join",zn);He("lastIndexOf",zn);He("slice",zn);He("toString",zn);He("toLocaleString",zn);He("every",Cr);He("filter",Cr);He("find",Cr);He("findIndex",Cr);He("flatMap",Cr);He("forEach",Cr);He("map",Cr);He("some",Cr);He("reduce",S3);He("reduceRight",S3);function He(e,t){typeof Array.prototype[e]=="function"&&(Pl[e]=t(e))}function zn(e){return function(){var t=this[K];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Cr(e){return function(t,n){var r=this,o=this[K];o.atom_.reportObserved();var i=o.dehanceValues_(o.values_);return i[e](function(a,l){return t.call(n,a,l,r)})}}function S3(e){return function(){var t=this,n=this[K];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),o=arguments[0];return arguments[0]=function(i,a,l){return o(i,a,l,t)},r[e].apply(r,arguments)}}var ny=yr("ObservableArrayAdministration",Sp);function Ha(e){return vc(e)&&ny(e[K])}var _3,O3,ry={},Qn="add",Ll="delete";_3=Symbol.iterator;O3=Symbol.toStringTag;var k3=function(){function e(n,r,o){var i=this;r===void 0&&(r=Qo),o===void 0&&(o="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[K]=ry,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=o,dn(Map)||ie(18),this.keysAtom_=bp("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,e3(!0,function(){i.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var o=this;if(!N.trackingDerivation)return this.has_(r);var i=this.hasMap_.get(r);if(!i){var a=i=new Dr(this.has_(r),xc,"ObservableMap.key?",!1);this.hasMap_.set(r,a),x3(a,function(){return o.hasMap_.delete(r)})}return i.get()},t.set=function(r,o){var i=this.has_(r);if(zt(this)){var a=Ft(this,{type:i?Cn:Qn,object:this,newValue:o,name:r});if(!a)return this;o=a.newValue}return i?this.updateValue_(r,o):this.addValue_(r,o),this},t.delete=function(r){var o=this;if(this.keysAtom_,zt(this)){var i=Ft(this,{type:Ll,object:this,name:r});if(!i)return!1}if(this.has_(r)){var a=Wi(),l=ln(this),c=l||a?{observableKind:"map",debugObjectName:this.name_,type:Ll,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return En(function(){var u;o.keysAtom_.reportChanged(),(u=o.hasMap_.get(r))==null||u.setNewValue_(!1);var f=o.data_.get(r);f.setNewValue_(void 0),o.data_.delete(r)}),l&&cn(this,c),!0}return!1},t.updateValue_=function(r,o){var i=this.data_.get(r);if(o=i.prepareNewValue_(o),o!==N.UNCHANGED){var a=Wi(),l=ln(this),c=l||a?{observableKind:"map",debugObjectName:this.name_,type:Cn,object:this,oldValue:i.value_,name:r,newValue:o}:null;i.setNewValue_(o),l&&cn(this,c)}},t.addValue_=function(r,o){var i=this;this.keysAtom_,En(function(){var u,f=new Dr(o,i.enhancer_,"ObservableMap.key",!1);i.data_.set(r,f),o=f.value_,(u=i.hasMap_.get(r))==null||u.setNewValue_(!0),i.keysAtom_.reportChanged()});var a=Wi(),l=ln(this),c=l||a?{observableKind:"map",debugObjectName:this.name_,type:Qn,object:this,name:r,newValue:o}:null;l&&cn(this,c)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,o=this.keys();return fa({next:function(){var a=o.next(),l=a.done,c=a.value;return{done:l,value:l?void 0:r.get(c)}}})},t.entries=function(){var r=this,o=this.keys();return fa({next:function(){var a=o.next(),l=a.done,c=a.value;return{done:l,value:l?void 0:[c,r.get(c)]}}})},t[_3]=function(){return this.entries()},t.forEach=function(r,o){for(var i=Mo(this),a;!(a=i()).done;){var l=a.value,c=l[0],u=l[1];r.call(o,u,c,this)}},t.merge=function(r){var o=this;return wr(r)&&(r=new Map(r)),En(function(){Dn(r)?M7(r).forEach(function(i){return o.set(i,r[i])}):Array.isArray(r)?r.forEach(function(i){var a=i[0],l=i[1];return o.set(a,l)}):ui(r)?(r.constructor!==Map&&ie(19,r),r.forEach(function(i,a){return o.set(a,i)})):r!=null&&ie(20,r)}),this},t.clear=function(){var r=this;En(function(){o3(function(){for(var o=Mo(r.keys()),i;!(i=o()).done;){var a=i.value;r.delete(a)}})})},t.replace=function(r){var o=this;return En(function(){for(var i=oy(r),a=new Map,l=!1,c=Mo(o.data_.keys()),u;!(u=c()).done;){var f=u.value;if(!i.has(f)){var p=o.delete(f);if(p)l=!0;else{var d=o.data_.get(f);a.set(f,d)}}}for(var g=Mo(i.entries()),y;!(y=g()).done;){var C=y.value,_=C[0],x=C[1],m=o.data_.has(_);if(o.set(_,x),o.data_.has(_)){var v=o.data_.get(_);a.set(_,v),m||(l=!0)}}if(!l)if(o.data_.size!==a.size)o.keysAtom_.reportChanged();else for(var w=o.data_.keys(),S=a.keys(),E=w.next(),j=S.next();!E.done;){if(E.value!==j.value){o.keysAtom_.reportChanged();break}E=w.next(),j=S.next()}o.data_=a}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,o){return Ua(this,r)},t.intercept_=function(r){return Fa(this,r)},vp(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:O3,get:function(){return"Map"}}]),e}(),wr=yr("ObservableMap",k3);function oy(e){if(ui(e)||wr(e))return e;if(Array.isArray(e))return new Map(e);if(Dn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return ie(21,e)}var E3,M3,iy={};E3=Symbol.iterator;M3=Symbol.toStringTag;var j3=function(){function e(n,r,o){r===void 0&&(r=Qo),o===void 0&&(o="ObservableSet"),this.name_=void 0,this[K]=iy,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=o,dn(Set)||ie(22),this.atom_=bp(this.name_),this.enhancer_=function(i,a){return r(i,a,o)},n&&this.replace(n)}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;En(function(){o3(function(){for(var o=Mo(r.data_.values()),i;!(i=o()).done;){var a=i.value;r.delete(a)}})})},t.forEach=function(r,o){for(var i=Mo(this),a;!(a=i()).done;){var l=a.value;r.call(o,l,l,this)}},t.add=function(r){var o=this;if(this.atom_,zt(this)){var i=Ft(this,{type:Qn,object:this,newValue:r});if(!i)return this}if(!this.has(r)){En(function(){o.data_.add(o.enhancer_(r,void 0)),o.atom_.reportChanged()});var a=!1,l=ln(this),c=l||a?{observableKind:"set",debugObjectName:this.name_,type:Qn,object:this,newValue:r}:null;l&&cn(this,c)}return this},t.delete=function(r){var o=this;if(zt(this)){var i=Ft(this,{type:Ll,object:this,oldValue:r});if(!i)return!1}if(this.has(r)){var a=!1,l=ln(this),c=l||a?{observableKind:"set",debugObjectName:this.name_,type:Ll,object:this,oldValue:r}:null;return En(function(){o.atom_.reportChanged(),o.data_.delete(r)}),l&&cn(this,c),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=0,o=Array.from(this.keys()),i=Array.from(this.values());return fa({next:function(){var l=r;return r+=1,lPu){for(var t=Pu;t=0&&n++;break}e=j0(e),t=j0(t);var l=a==="[object Array]";if(!l){if(typeof e!="object"||typeof t!="object")return!1;var c=e.constructor,u=t.constructor;if(c!==u&&!(dn(c)&&c instanceof c&&dn(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],o=o||[];for(var f=r.length;f--;)if(r[f]===e)return o[f]===t;if(r.push(e),o.push(t),l){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!Jd(e[f],t[f],n-1,r,o))return!1}else{var p=Object.keys(e),d;if(f=p.length,Object.keys(t).length!==f)return!1;for(;f--;)if(d=p[f],!(In(t,d)&&Jd(e[d],t[d],n-1,r,o)))return!1}return r.pop(),o.pop(),!0}function j0(e){return Ha(e)?e.slice():ui(e)||wr(e)||Pa(e)||Jr(e)?Array.from(e.entries()):e}function fa(e){return e[Symbol.iterator]=fy,e}function fy(){return this}["Symbol","Map","Set"].forEach(function(e){var t=gp();typeof t[e]>"u"&&ie("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ab,extras:{getDebugName:Qd},$mobx:K});if(!b.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!Qb)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function py(e){e()}function hy(e){e||(e=py),yc({reactionScheduler:e})}function my(e){return Wb(e)}var gy=1e4,vy=1e4,xy=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=gy),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var o=Date.now();n.registrations.forEach(function(i,a){o-i.registeredAt>=r&&(n.finalize(i.value),n.registrations.delete(a))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,vy))}}),e}(),by=typeof FinalizationRegistry<"u"?FinalizationRegistry:xy,ef=new by(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),T0=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i};function A0(e){return"observer".concat(e)}var yy=function(){function e(){}return e}();function Cy(){return new yy}function wy(e,t){t===void 0&&(t="observed");var n=T0(Ce.useState(Cy),1),r=n[0],o=T0(Ce.useState(),2),i=o[1],a=function(){return i([])},l=Ce.useRef(null);l.current||(l.current={reaction:null,mounted:!1,changedBeforeMount:!1});var c=l.current;c.reaction||(c.reaction=new ei(A0(t),function(){c.mounted?a():c.changedBeforeMount=!0}),ef.register(r,c,c)),Ce.useDebugValue(c.reaction,my),Ce.useEffect(function(){return ef.unregister(c),c.mounted=!0,c.reaction?c.changedBeforeMount&&(c.changedBeforeMount=!1,a()):(c.reaction=new ei(A0(t),function(){a()}),a()),function(){c.reaction.dispose(),c.reaction=null,c.mounted=!1,c.changedBeforeMount=!1}},[]);var u,f;if(c.reaction.track(function(){try{u=e()}catch(p){f=p}}),f)throw f;return u}var P3=typeof Symbol=="function"&&Symbol.for,N0=P3?Symbol.for("react.forward_ref"):typeof b.forwardRef=="function"&&b.forwardRef(function(e){return null}).$$typeof,I0=P3?Symbol.for("react.memo"):typeof b.memo=="function"&&b.memo(function(e){return null}).$$typeof;function Sy(e,t){var n;if(I0&&e.$$typeof===I0)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(n=void 0)!==null&&n!==void 0?n:!1,o=e,i=e.displayName||e.name;if(N0&&e.$$typeof===N0&&(r=!0,o=e.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a=function(l,c){return wy(function(){return o(l,c)},i)};return i!==""&&(a.displayName=i),e.contextTypes&&(a.contextTypes=e.contextTypes),r&&(a=b.forwardRef(a)),a=b.memo(a),Oy(e,a),a}var _y={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Oy(e,t){Object.keys(e).forEach(function(n){_y[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var Lu;hy(Aa.unstable_batchedUpdates);Lu=ef.finalizeAllImmediately;var P0=0;function ky(e){if(typeof Symbol=="function")return Symbol(e);var t="__$mobx-react "+e+" ("+P0+")";return P0++,t}var Ru={};function mr(e){return Ru[e]||(Ru[e]=ky(e)),Ru[e]}function L3(e,t){if(L0(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o2?r-2:0),i=2;i {}` or `render = function() {}` is not supported.")}return t.render=function(){return this.render=jy.call(this,r),this.render()},B0(t,"componentDidMount",function(){this[tf]=!1,this.render[Bo]||b.Component.prototype.forceUpdate.call(this)}),B0(t,"componentWillUnmount",function(){var i=this.render[Bo];if(i)i.dispose(),this.render[Bo]=null;else{var a=Zs(this);console.warn("The reactive render of an observer class component ("+a+`) was overridden after MobX attached. This may result in a memory leak if the overridden reactive render was not properly disposed.`)}this[tf]=!0}),e}function Zs(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function jy(e){var t=this;Mn(this,$l,!1),Mn(this,Xs,!1);var n=Zs(this),r=e.bind(this),o=!1,i=function(){var c=new ei(n+".render()",function(){if(!o&&(o=!0,t[tf]!==!0)){var u=!0;try{Mn(t,Xs,!0),t[$l]||b.Component.prototype.forceUpdate.call(t),u=!1}finally{Mn(t,Xs,!1),u&&(c.dispose(),t.render[Bo]=null)}}});return c.reactComponent=t,c};function a(){var l;o=!1;var c=(l=a[Bo])!=null?l:a[Bo]=i(),u=void 0,f=void 0;if(c.track(function(){try{f=e3(!1,r)}catch(p){u=p}}),u)throw u;return f}return a}function F0(e,t){return this.state!==t?!0:!L3(this.props,e)}function $u(e,t){var n=mr("reactProp_"+t+"_valueHolder"),r=mr("reactProp_"+t+"_atomHolder");function o(){return this[r]||Mn(this,r,bp("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var a=!1;return Do&&ur&&(a=Do(!0)),o.call(this).reportObserved(),Do&&ur&&ur(a),this[n]},set:function(a){!this[Xs]&&!L3(this[n],a)?(Mn(this,n,a),Mn(this,$l,!0),o.call(this).reportChanged(),Mn(this,$l,!1)):Mn(this,n,a)}})}function kp(e){return e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(b.Component,e)||Object.prototype.isPrototypeOf.call(b.PureComponent,e)?My(e):Sy(e)}if(!b.Component)throw new Error("mobx-react requires React to be available");if(!Ge)throw new Error("mobx-react requires mobx to be available");function jt(){return jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e=e||{},Object.entries(e).reduce((n,r)=>{let[o,i]=r;i=i||{};const a=Object.entries(i).reduce((l,c)=>jt({},l,Ny(c)),{});return jt({},n,{[o]:a})},{})),Ay=e=>e.replace(/-(\w|$)/g,(t,n)=>n.toUpperCase()),Ny=e=>{const[t,n]=e;return{[Ay(t)]:n}},D3=1e3,Iy=2*D3,Py=30*D3,Ly=5,Du=e=>B3(...e.reverse())(),Ry=e=>()=>t=>e.forEach(n=>n(t)),$y=function(e){let{debounceTime:t=Iy,timeout:n=Py,maxBufferCount:r=Ly}=e===void 0?{}:e;return function(o){let i,a=null;const l=[],c=function(){a=null,o(l.splice(0))};return u=>{clearInterval(i),l.push(u),a=a||Date.now(),(l.length>=r?c:()=>i=setTimeout(c,Math.max(Math.min(t,a+n-Date.now()))))()}}};function B3(){for(var e=arguments.length,t=new Array(e),n=0;ni=>o(r(i)))}function U0(e,t){return n=>(n[e]=t,n)}function Dy(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r=0)&&(n[o]=e[o]);return n}function zy(e,t){if(!t)return e;const n=e.indexOf("?")>-1?"&":"?",r=new URLSearchParams(t);return r?""+e+n+r:e}const Fy=["url","method","authToken","headers","toJson","throwError","useDefaultHeaders","queryParams"];let z3=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e}({});const Cs="Something went wrong.",Uy={"Content-Type":"application/json"};async function Hy(e){let{url:t,method:n=z3.GET,authToken:r,headers:o,toJson:i=!0,throwError:a=!1,useDefaultHeaders:l=!0,queryParams:c}=e,u=Ga(e,Fy);const f=jt({method:n},r&&{credentials:"include"},{headers:jt({},l&&Uy,r&&{Authorization:r},o)},u);let p;try{if(p=await(globalThis==null?void 0:globalThis.fetch(zy(t,c),jt({},f))),p.ok&&p.status>=200&&p.status<300){var d;let g;return i&&p.status!==204&&(d=p.headers.get("Content-type"))!=null&&d.includes("json")&&(g=await p.json()),{data:g,error:void 0,response:p}}}catch(g){if(a)throw g||new Error(Cs);return{data:void 0,error:g||Cs,response:p}}if(a)throw new Error(Cs);return{data:void 0,error:Cs,response:p}}function Wy(e,t,n){let{leading:r}=n===void 0?{leading:!1}:n,o;return function(){for(var i=arguments.length,a=new Array(i),l=0;l{e(...a),o=null},t)}}globalThis!=null&&globalThis.notifyServerThrottled||(globalThis.notifyServerThrottled=Wy(Gy,3e4,{leading:!1}));globalThis!=null&&globalThis.evaluatedFlags||(globalThis.evaluatedFlags=new Set);function H0(e,t){return parseInt(String(wc(e,t)),10)}function wc(e,t){return F3(e,t,globalThis.commonProps)}function Ep(e,t){return t===void 0&&(t=!1),wc("featureFlag.fromCommonProps.enabled",!1)||(globalThis.evaluatedFlags.add(e),globalThis.notifyServerThrottled()),F3(e,t,Vy())}function F3(e,t,n){n===void 0&&(n=globalThis.commonProps);const r=n||globalThis.commonProps||globalThis.rtCommonProps||{};return r[e]===void 0?t:r[e]}function Vy(){let e;if(window._flags)e=window._flags;else try{e=window.parent._flags}catch{e={}}return e}async function Gy(){if(By())return;const e=Array.from(globalThis.evaluatedFlags);if(globalThis.evaluatedFlags.clear(),!!e.length)try{await Hy({url:"/api/uis/flags/notify",method:z3.POST,body:JSON.stringify(e),keepalive:!0})}catch(t){console.warn("Couldn't send flags evaluation (flags: "+e+"):",t)}}const Oe={TRACE:"trace",DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"},Ky=e=>{let{error:t,logMsg:n,level:r}=e;if(t instanceof Error)window.Sentry.captureException(t);else if(typeof t=="object"&&typeof t.abort=="function"&&typeof t.done=="function"){const o=t;let i="jQuery AJAX error";o.status&&(i+=": "+o.status+" "+o.statusText,o.status,o.statusText),o.responseJSON?(o.responseJSON,i+=" - Response: "+JSON.stringify(o.responseJSON)):o.responseText&&o.responseText.substring(0,200),window.Sentry.captureMessage(i,Bu(r))}else typeof t=="string"||n?window.Sentry.captureMessage(t??n,Bu(r)):window.Sentry.captureMessage("An unexpected error type: "+String(t),Bu(r))},Bu=e=>e===Oe.WARN?"warning":e===Oe.TRACE?"log":e==null?void 0:e.toString().toLowerCase(),Yy=["level"],qy=["data","data"],Xy=["_source","errorBoundaryId"],U3=()=>{},ws=(e,t)=>t?{[e]:t}:{},W0="application/json",Zy="version",V0="/_dm/s/rt/actions/logs",Qy=Ep("sentry.report.on.client.logs.enabled"),Jy=Ep("sentry.report.on.client.logs.levels",["ERROR"]),e5=function(e){return["getHours","getMinutes","getSeconds"].map(t=>new Date(e)[t]().toString().padStart(2,"0")).join(":")},H3=e=>typeof e=="string"?e:["message","msg","text","error","desc","description","dataString"].reduce((t,n)=>{const r=e[n];return t||(typeof r=="string"?r:null)},null),t5=e=>t=>{let{logLevel:n,dataString:r}=t;return e({data:r,level:n})},n5=e=>t=>{var n,r;return e(Object.assign(t,{userAgent:(n=window)==null||(n=n.navigator)==null?void 0:n.userAgent,url:(r=window)==null||(r=r.location)==null?void 0:r.href,timestamp:Date.now()}))},G0=e=>{const t=n=>[Oe.TRACE,Oe.DEBUG,Oe.INFO,Oe.WARN,Oe.ERROR].indexOf(n);return n=>r=>{let{level:o}=r,i=Ga(r,Yy);return t(o)>=t(e)&&n(jt({level:o},i))}},r5=e=>t=>{let{data:n,data:{_skipJournal:r=!1}={}}=t,o=Ga(t,qy);(r?U3:e)(jt({data:n},o))},o5=function(){const e=[{test:t=>t instanceof Error,format:t=>["message","stack","code","cause"].reduce((n,r)=>jt({},ws(r,t[r]),n),{})},{test:t=>["string","number"].includes(typeof t),format:t=>({message:t})},{test:()=>!0,format:t=>Object.entries(t).reduce((n,r)=>{let[o,i]=r;return jt({[o]:["number","string"].includes(typeof i)?i:JSON.stringify(i)},n)},{})}];return t=>n=>{t({logs:n.map(r=>{let{data:o,level:i,timestamp:a,userAgent:l,url:c,version:u,environment:f}=r;const p=H3(o);return jt({priority:i.toUpperCase(),_error:o._error||o.error},ws("log",p),{fields:jt({_ts:a,_url:c,_userAgent:l},ws("_ver",u),ws("_env",f),e.find(d=>{let{test:g}=d;return g(o)}).format(o))})})})}}(),i5=function(e){e===void 0&&(e="");const[t,n]=(e.match(/^(\w+)_([0-9]+)$/)||[]).slice(1);return r=>B3(...[t&&U0("environment",t),n&&U0("version",Number(n)),r].filter(Boolean))}((e=>e(e,window))((e,t)=>t&&(t[Zy]||(t.parent!==t?e(e,t.parent):"")))),a5=()=>e=>{var t,n;let{text:r,level:o}=e;((t=(n=console)==null?void 0:n[o])!=null?t:console.log)(r)},s5=e=>t=>{let{data:n,level:r,timestamp:o}=t;return e({level:r,text:"["+e5(o)+"] "+(H3(n)||'Cannot find a description for the message sent. See "fields" for more information.')})},l5=e=>t=>(navigator.sendBeacon?navigator.sendBeacon(V0,new Blob([JSON.stringify(t)],{type:W0})):globalThis==null||globalThis.fetch==null||globalThis.fetch(V0,{headers:{"content-type":W0},credentials:"omit",cache:"no-store",method:"POST",body:JSON.stringify(t)}),e(t)),c5=e=>t=>{var n;if(Qy&&(n=window)!=null&&n.Sentry){const{logs:r}=t;r.length&&r.forEach(o=>{if(Jy.includes(o.priority)){const{log:i,_error:a,fields:l={}}=o,{_source:c,errorBoundaryId:u}=l,f=Ga(l,Xy);window.Sentry.withScope(p=>{p.setContext("Logger",JSON.parse(JSON.stringify(f))),u&&p.setTag("errorBoundaryId",u),p.setTag("isErrorBoundary",c==="ErrorBoundary"),Ky({error:a,logMsg:i,level:o.priority})})}})}return e==null?void 0:e(t)},u5=e=>t=>{var n;return((n=wc("server.for.resources"))!=null&&n.includes("localhost")?U3:e)(t)},d5=1e3,f5=.5*d5,p5=5,h5="common.log.debounceDelay",m5="common.log.batchLogLimit",W3=Dy(Du([t5,n5,i5,Ry([Du([G0(Oe.WARN),s5,a5]),Du([u5,r5,G0(Oe.TRACE),$y({debounceTime:H0(h5)||f5,maxBufferCount:H0(m5)||p5}),o5,l5,c5])])])),g5=e=>t=>W3({logLevel:e,dataString:t}),[V3,G3,K3,Y3,q3]=[Oe.TRACE,Oe.DEBUG,Oe.INFO,Oe.WARN,Oe.ERROR].map(g5);Object.assign(W3,{[Oe.TRACE]:V3,[Oe.DEBUG]:G3,[Oe.INFO]:K3,[Oe.WARN]:Y3,[Oe.ERROR]:q3});const v5={[Oe.TRACE]:V3,[Oe.DEBUG]:G3,[Oe.INFO]:K3,[Oe.WARN]:Y3,[Oe.ERROR]:q3};function x5(e,t,n,r){if(!e)return"";const o=e,i=b5();i&&(i[o]||i[e]);let a=i&&(i[o]||i[e])||r||e;return t&&Object.keys(t).forEach(l=>{a=a.replace(new RegExp("{"+l+"}","g"),t[l])}),a}function b5(){var e;return window.dmStr||((e=window.parent)==null?void 0:e.dmStr)}globalThis._abtests=globalThis._abtests||{};const fe={str:(e,t)=>x5(e,t),getAllStringsForCurrentLang:()=>{throw new Error("not implemented")}};var X3=(e=>(e.ONE_TIME="ONE_TIME",e.SUBSCRIPTION="SUBSCRIPTION",e))(X3||{});const Ss=v5;function _s(e,t){return typeof e=="string"?t?{message:e,...t}:e:{url:window.location.href,...e,...t}}const Ne={debug:(e,t)=>Ss.debug(_s(e,t)),info:(e,t)=>Ss.info(_s(e,t)),warn:(e,t)=>Ss.warn(_s(e,t)),error:(e,t)=>Ss.error(_s(e,t))},pa="ONE_TIME_ONLY";var zo=(e=>(e.DROPDOWN="DROPDOWN",e.RADIOBUTTON="RADIOBUTTON",e.COLOR="COLOR",e))(zo||{});function zu(e){try{const t=typeof e=="string"?e:JSON.stringify(e);if(window.TextEncoder){const n=new TextEncoder().encode(t),r=String.fromCharCode(...n);return btoa(r)}return btoa(t)}catch(t){return Ne.warn({err:t,variation:e,tags:["encodeUniqueKey"]}),"{}"}}function Z3(e){try{return JSON.parse(new TextDecoder().decode(Uint8Array.from(atob(e),t=>t.charCodeAt(0)))||"{}")}catch{return{}}}function y5(e){const{purchase_options:t=[],payment_plans:n=[]}=e;switch(!0){case t.length===2:return[{id:pa,name:fe.str("ui.runtimessr.priceOptions.option.oneTimeOnly"),discount_percentage:0,plan_price:e.price,plan_displayed_price:e.displayed_price,tax_percentage:e.tax_percentage},...n];case t.includes(X3.SUBSCRIPTION):return n;default:return[]}}function C5(e){return{...e||{},options:((e==null?void 0:e.options)||[]).reduce((t,n)=>n.type===zo.COLOR&&n.opt_choices&&n.opt_choices.length>0?{...t,[n.name]:n.opt_choices.map(r=>({label:r.value,value:r.value,color:r.color}))}:{...t,[n.name]:n.choices.split(",").map(r=>({label:r,value:r}))},{})}}yc({isolateGlobalState:!0});function K0(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function nf(e,t){const n=new Set(Object.keys({...e,...t})),r={};return n.forEach(o=>{const i=e[o],a=t[o];K0(i)&&K0(a)?r[o]=nf(i,a):r[o]=a??i}),r}const w5=e=>{var r,o;const t=(r=globalThis==null?void 0:globalThis.document)==null?void 0:r.getElementById(e),n=(o=t==null?void 0:t.dataset)==null?void 0:o.model;return Z3(n)};class S5{constructor(t={},n={}){q(this,"_legacyWidget",!0);q(this,"_model");q(this,"_props");q(this,"_initialProps");q(this,"getInitialJSProps",()=>To(this._initialProps));q(this,"getJSProps",()=>To(this._props));this._model=t,this._props=n,Cc(this)}get model(){if(!this._legacyWidget){const t="model accessed in non legacy widget";console.error(t),Ne.debug({msg:t})}return this._model}get modelForPersistance(){return To(this.model)}get props(){if(this._legacyWidget){const t=this._props;return t._styles=Ty(this.model._styles),t}return this._props}setProps(t){this._props=t}jsModel(){return To(this._model)}mergeProps(t){this._props=nf({...this.props},{...t})}clearProps(){this._props={}}mergeModel(t){this._model=nf({...this._model},{...t})}clearModel(){this._model={}}clearModelStyle(){this._model={...this._model,_styles:{}}}set legacyWidget(t){this._legacyWidget=t}setInitialProps(t,n){this._initialProps=t,this.setProps(t),Pv({type:"widget-props-store-initial-props-updated",widgetId:n})}}class _5{constructor(){q(this,"widgetsStoresMap",new Map);q(this,"getWidgetData",this.getWidgetStore)}getWidgetStore(t){let n=this.widgetsStoresMap.get(t);if(!n){const r=w5(t);n=new S5(r),this.widgetsStoresMap.set(t,n)}return n}}globalThis.propsStore=globalThis.propsStore||new _5;const Q3=globalThis.propsStore;var vm;const J3={isInEditor:(vm=globalThis==null?void 0:globalThis.Parameters)==null?void 0:vm.isInEditor},e6=Ce.createContext(J3);function Sc(){return Ce.useContext(e6)}function O5({children:e}){const t=k5();return s.jsx(e6.Provider,{value:t,children:e})}function k5(){const[e,t]=Ce.useState(J3);return Ce.useEffect(()=>{var i;if(!((i=window==null?void 0:window.Parameters)==null?void 0:i.isInEditor))return;let r=null;const o=setInterval(()=>{var l,c,u;const a=(u=(c=(l=window.top)==null?void 0:l.$)==null?void 0:c.Editor)==null?void 0:u.uiStateListener;a&&(clearInterval(o),r=a(t))},1e3);return()=>{r==null||r()}},[]),e}yc({isolateGlobalState:!0});function E5({Component:e,widgetId:t}){const n=Q3.getWidgetStore(t);b.useEffect(()=>{Pv({type:"widget-rendered-following-props-change",widgetId:t})},[n.props]);const{key:r,...o}=To(n.props);return s.jsx(O5,{children:s.jsx(e,{widgetId:t,...o},r)})}const t6=kp(E5),Y0="runtime.ssr.",ht={getBoolean:(e,t=!1)=>{if(!e.startsWith(Y0))throw new Error(`Flag must contains ${Y0}`);return Ep(e,t)},getProperty:(e,t)=>wc(e,t),getServiceFlags:()=>{throw new Error("not implemented")},initServiceFlags:async()=>{throw new Error("not implemented")}};var Qe=(e=>(e.Slider="SSR_IMAGE_SLIDER",e.Cart="SSR_CART",e.AddToCart="SSR_ADD_TO_CART",e.OptionsVariations="SSR_OPTIONS_VARIATIONS",e.Breadcrumbs="SSR_BREADCRUMBS",e.CollectionSearch="SSR_COLLECTION_SEARCH",e.RuntimeFilterSort="SSR_FILTER_SORT",e.ProductPrice="SSR_PRODUCT_PRICE",e.ProductPriceOptions="SSR_PRODUCT_PRICE_OPTIONS",e.Accordion="SSR_ACCORDION",e.CalBooking="SSR_CAL_BOOKING",e.ProductCustomizations="SSR_PRODUCT_CUSTOMIZATIONS",e.FormFileInput="SSR_ADVANCED_FORM_FILE_INPUT",e.OrderConfirmation="SSR_ORDER_CONFIRMATION",e))(Qe||{}),n6={exports:{}},pe={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mp=Symbol.for("react.element"),jp=Symbol.for("react.portal"),_c=Symbol.for("react.fragment"),Oc=Symbol.for("react.strict_mode"),kc=Symbol.for("react.profiler"),Ec=Symbol.for("react.provider"),Mc=Symbol.for("react.context"),M5=Symbol.for("react.server_context"),jc=Symbol.for("react.forward_ref"),Tc=Symbol.for("react.suspense"),Ac=Symbol.for("react.suspense_list"),Nc=Symbol.for("react.memo"),Ic=Symbol.for("react.lazy"),j5=Symbol.for("react.offscreen"),r6;r6=Symbol.for("react.module.reference");function Yt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mp:switch(e=e.type,e){case _c:case kc:case Oc:case Tc:case Ac:return e;default:switch(e=e&&e.$$typeof,e){case M5:case Mc:case jc:case Ic:case Nc:case Ec:return e;default:return t}}case jp:return t}}}pe.ContextConsumer=Mc;pe.ContextProvider=Ec;pe.Element=Mp;pe.ForwardRef=jc;pe.Fragment=_c;pe.Lazy=Ic;pe.Memo=Nc;pe.Portal=jp;pe.Profiler=kc;pe.StrictMode=Oc;pe.Suspense=Tc;pe.SuspenseList=Ac;pe.isAsyncMode=function(){return!1};pe.isConcurrentMode=function(){return!1};pe.isContextConsumer=function(e){return Yt(e)===Mc};pe.isContextProvider=function(e){return Yt(e)===Ec};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mp};pe.isForwardRef=function(e){return Yt(e)===jc};pe.isFragment=function(e){return Yt(e)===_c};pe.isLazy=function(e){return Yt(e)===Ic};pe.isMemo=function(e){return Yt(e)===Nc};pe.isPortal=function(e){return Yt(e)===jp};pe.isProfiler=function(e){return Yt(e)===kc};pe.isStrictMode=function(e){return Yt(e)===Oc};pe.isSuspense=function(e){return Yt(e)===Tc};pe.isSuspenseList=function(e){return Yt(e)===Ac};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_c||e===kc||e===Oc||e===Tc||e===Ac||e===j5||typeof e=="object"&&e!==null&&(e.$$typeof===Ic||e.$$typeof===Nc||e.$$typeof===Ec||e.$$typeof===Mc||e.$$typeof===jc||e.$$typeof===r6||e.getModuleId!==void 0)};pe.typeOf=Yt;n6.exports=pe;var o6=n6.exports;function T5(e){function t(P,R,D,G,k){for(var ee=0,L=0,Te=0,le=0,ue,X,qe=0,mt=0,re,ot=re=ue=0,ce=0,Xe=0,mi=0,Ze=0,Qa=D.length,gi=Qa-1,Xt,Y="",Le="",ou="",iu="",Hn;ceue)&&(Ze=(Y=Y.replace(" ",":")).length),0G&&(G=(R=R.trim()).charCodeAt(0)),G){case 38:return R.replace(x,"$1"+P.trim());case 58:return P.trim()+R.replace(x,"$1"+P.trim());default:if(0<1*D&&0L.charCodeAt(8))break;case 115:k=k.replace(L,"-webkit-"+L)+";"+k;break;case 207:case 102:k=k.replace(L,"-webkit-"+(102D.charCodeAt(0)&&(D=D.trim()),se=D,D=[se],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Z5=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,o=0;o=this.groupSizes.length){for(var o=this.groupSizes,i=o.length,a=i;n>=a;)(a<<=1)<0&&Yr(16,""+n);this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var l=i;l=this.length||this.groupSizes[n]===0)return r;for(var o=this.groupSizes[n],i=this.indexOfGroup(n),a=i+o,l=i;l=Vi&&(Vi=t+1),Qs.set(e,t),Bl.set(t,e)},eC="style["+ni+'][data-styled-version="5.3.11"]',tC=new RegExp("^"+ni+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),nC=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i=0;u--){var f=c[u];if(f&&f.nodeType===1&&f.hasAttribute(ni))return f}}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(ni,"active"),r.setAttribute("data-styled-version","5.3.11");var a=oC();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},iC=function(){function e(n){var r=this.element=c6(n);r.appendChild(document.createTextNode("")),this.sheet=function(o){if(o.sheet)return o.sheet;for(var i=document.styleSheets,a=0,l=i.length;a=0){var o=document.createTextNode(r),i=this.nodes[n];return this.element.insertBefore(o,i||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(p+=d+",")}),i+=""+u+f+'{content:"'+p+`"}/*!sc*/ `}}}return i}(this)},e}(),cC=/(a)(d)/gi,n1=function(e){return String.fromCharCode(e+(e>25?39:97))};function of(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=n1(t%52)+n;return(n1(t%52)+n).replace(cC,"$1-$2")}var Ao=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},u6=function(e){return Ao(5381,e)};function d6(e){for(var t=0;t>>0);if(!n.hasNameForId(o,l)){var c=r(a,"."+l,void 0,o);n.insertRules(o,l,c)}i.push(l),this.staticRulesId=l}else{for(var u=this.rules.length,f=Ao(this.baseHash,r.hash),p="",d=0;d>>0);if(!n.hasNameForId(o,_)){var x=r(p,"."+_,void 0,o);n.insertRules(o,_,x)}i.push(_)}}return i.join(" ")},e}(),fC=/^\s*\/\/.*$/gm,pC=[":","[",".","#"];function hC(e){var t,n,r,o,i=dr,a=i.options,l=a===void 0?dr:a,c=i.plugins,u=c===void 0?Dl:c,f=new T5(l),p=[],d=function(C){function _(x){if(x)try{C(x+"}")}catch{}}return function(x,m,v,w,S,E,j,T,z,$){switch(x){case 1:if(z===0&&m.charCodeAt(0)===64)return C(m+";"),"";break;case 2:if(T===0)return m+"/*|*/";break;case 3:switch(T){case 102:case 112:return C(v[0]+m),"";default:return m+($===0?"/*|*/":"")}case-2:m.split("/*|*/}").forEach(_)}}}(function(C){p.push(C)}),g=function(C,_,x){return _===0&&pC.indexOf(x[n.length])!==-1||x.match(o)?C:"."+t};function y(C,_,x,m){m===void 0&&(m="&");var v=C.replace(fC,""),w=_&&x?x+" "+_+" { "+v+" }":v;return t=m,n=_,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(x||!_?"":_,w)}return f.use([].concat(u,[function(C,_,x){C===2&&x.length&&x[0].lastIndexOf(n)>0&&(x[0]=x[0].replace(r,g))},d,function(C){if(C===-2){var _=p;return p=[],_}}])),y.hash=u.length?u.reduce(function(C,_){return _.name||Yr(15),Ao(C,_.name)},5381).toString():"",y}var f6=Ce.createContext();f6.Consumer;var p6=Ce.createContext(),mC=(p6.Consumer,new zl),af=hC();function h6(){return b.useContext(f6)||mC}function m6(){return b.useContext(p6)||af}var g6=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=af);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.toString=function(){return Yr(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=af),this.name+t.hash},e}(),gC=/([A-Z])/,vC=/([A-Z])/g,xC=/^ms-/,bC=function(e){return"-"+e.toLowerCase()};function r1(e){return gC.test(e)?e.replace(vC,bC).replace(xC,"-ms-"):e}var o1=function(e){return e==null||e===!1||e===""};function qr(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,l=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,CC=/(^-|-$)/g;function Fu(e){return e.replace(yC,"-").replace(CC,"")}var $p=function(e){return of(u6(e)>>>0)};function ks(e){return typeof e=="string"&&!0}var sf=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},wC=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function SC(e,t,n){var r=e[n];sf(t)&&sf(r)?x6(r,t):e[n]=t}function x6(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||($[T]=E[T]);return $}(t,["componentId"]),S=v&&v+"-"+(ks(m)?m:Fu(e1(m)));return b6(m,nn({},w,{attrs:d,componentId:S}),n)},Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(m){this._foldedDefaultProps=r?x6({},e.defaultProps,m):m}}),Object.defineProperty(y,"toString",{value:function(){return"."+y.styledComponentId}}),o&&Y5(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),y}var O=function(e){return function t(n,r,o){if(o===void 0&&(o=dr),!o6.isValidElementType(r))return Yr(1,String(r));var i=function(){return n(r,o,Pe.apply(void 0,arguments))};return i.withConfig=function(a){return t(n,r,nn({},o,{},a))},i.attrs=function(a){return t(n,r,nn({},o,{attrs:Array.prototype.concat(o.attrs,a).filter(Boolean)}))},i}(b6,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){O[e]=O(e)});var OC=function(){function e(n,r){this.rules=n,this.componentId=r,this.isStatic=d6(n),zl.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(n,r,o,i){var a=i(qr(this.rules,r,o,i).join(""),""),l=this.componentId+n;o.insertRules(l,l,a)},t.removeStyles=function(n,r){r.clearRules(this.componentId+n)},t.renderStyles=function(n,r,o,i){n>2&&zl.registerId(this.componentId+n),this.removeStyles(n,o),this.createStyles(n,r,o,i)},e}();function kC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r{a1(e[r])&&a1(t[r])?n[r]=y6(e[r],t[r]):n[r]=t[r]}),n}const Vc=(e,t)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(void 0,r)},t)}};function C6(e){return e==null?!0:Object.keys(e).length===0}function MC(e,t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Js=()=>{var e;return(e=globalThis==null?void 0:globalThis.crypto)!=null&&e.randomUUID?globalThis.crypto.randomUUID():Math.random().toString(36).substring(2,7)},$e={get isEditor(){var e,t,n;try{return(n=(t=(e=window.$)==null?void 0:e.DM)==null?void 0:t.insideEditor)==null?void 0:n.call(t)}catch{return!1}},get isServer(){return!1},get isBrowser(){return!0}};function jC(e){var t={};return n=>n in t?t[n]:t[n]=e(n)}function TC(e){return e.replace(/-./g,t=>t[1].toUpperCase())}const AC=jC(TC);function w6(e){const t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="object"&&r!=null?t[n]=w6(r):t[AC(n)]=r}),t}const NC=w6;function IC(e,t){if(!t)return e;const n=NC(t);return y6(e,n)}function ae(e){return(Array.isArray(e)?e:[e]).flat(1/0).reduce(IC,{})}function Be(e={},t){const{pseudoSelector:n,innerSelector:r}=t,o={};return Object.entries(e).forEach(([i,a])=>{let l;n?(l={[`&:${n} ${r||""}`]:a},$e.isEditor&&(l[`&.${n} ${r||""}`]=a)):r?l={[r]:a}:l={},o[i]=l}),o}function PC(e,t){const n={};return Object.entries(e).forEach(([r,o])=>{n[r]=Object.entries(o).reduce((i,[a,l])=>(t.has(a)&&(i[a]=l),i),{})}),n}const S6="#dm#dm#dm &&";function LC(e,t){return`${e==="maxWidth"?"max-width":"min-width"}: ${t}px`}function RC(e,t){const n=EC[e];let r;return!n.maxWidth&&!n.minWidth?r="all":r=Object.entries(n).map(([o,i])=>`(${LC(o,i)})`).join(" and "),{[`@media ${r}`]:t}}const $C={main:h.MOBILE,implicit:h.MOBILE_IMPLICIT},DC={main:h.TABLET,implicit:h.TABLET_IMPLICIT};function s1(e={},t){const n=e[t.implicit],r=e[t.main];return(n||r)&&{...n,...r}}const BC=(e,t)=>Object.fromEntries(t.filter(n=>n in e).map(n=>[n,e[n]]));function zC(e){const t={};for(const[n,r]of Object.entries(e))r===""||r===void 0||r===null?t[n]=r:t[n]=`${r} !important`;return t}function FC(e={},t=!1,n=!1){const r={...BC(e,[h.COMMON,h.DESKTOP]),[h.TABLET]:s1(e,DC),[h.MOBILE]:s1(e,$C)};let o={};return Object.entries(r).forEach(([i,a])=>{if(a){const l=n?zC(a):a,c=RC(i,l);Object.assign(o,c)}}),t?{[S6]:o}:o}function Kt(e,t,n){const r=ae(e||[]);return FC(r,t,n)}const UC=O.video(({styles:e})=>Kt([HC,e],!0)),HC={[h.COMMON]:{margin:"revert"}},eo=O.div(({styles:e})=>Kt(e||[])),M=eo,rt=eo.withComponent("span"),ma=eo.withComponent("img"),Ka=eo.withComponent("label"),WC=eo.withComponent("li"),VC=eo.withComponent("ul"),gr=eo.withComponent("svg");function _6(e,t=!1){return O.div(({styles:r})=>Kt(r,t)).withComponent(e)}var te=(e=>(e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.paragraph="p",e.span="span",e.div="div",e))(te||{});function GC(e){return te[e]}const O6=O.div(e=>Kt(e.styles,!0)),Z=({tag:e,domAttrs:t,grabId:n,...r})=>s.jsx(O6,{as:e,"data-auto":n,"data-grab":n,...t,...r});Z.selector=O6;const Dp=({containerStyles:e})=>$e.isEditor?s.jsxs(M,{styles:[KC,e],children:[s.jsx(ma,{src:"https://static-cdn.multiscreensite.com/react-widgets/placeholder.svg",alt:"placeholder"}),s.jsxs(M,{styles:YC,children:[s.jsx(ma,{src:"https://static-cdn.multiscreensite.com/react-widgets/i_Plus.svg",alt:"plus"}),s.jsx(Z,{styles:qC,children:fe.str("placeholder.add-content")})]})]}):null,KC={[h.COMMON]:{width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#F5F5F5"}},YC={[h.COMMON]:{display:"flex",alignItems:"center",color:"#616C79"}},qC={[h.COMMON]:{fontFamily:"Source Sans Pro",fontWeight:400,fontSize:"14px",lineHeight:"22px",color:"#616C79",paddingInlineStart:"4px"}},k6=({linkFunctionalityDomAttributes:e,grabId:t,classNames:n,...r})=>s.jsx(XC,{...e,"data-auto":t,"data-grab":t,className:n==null?void 0:n.join(" "),...r}),XC=O.a.withConfig({shouldForwardProp:e=>e!=="styles"})(({styles:e})=>Kt(e,!0)),l1=_6("span",!0),lf=({buttonContent:e,styles:t,linkFunctionalityDomAttributes:n,normalizeStyles:r=!0,iconClass:o,iconComponent:i,showHoverEffect:a,rootDataAttributes:l,dataGrab:c,isDisabled:u=!1,className:f})=>{const{text:p}=e,d=r?JC:{};return s.jsxs(k6,{styles:[d.root,t.root,u?t.rootDisabled:[Be(ae(t.rootHover),{pseudoSelector:"hover"}),Be(ae(t.rootHoverText),{pseudoSelector:"hover",innerSelector:Z.selector}),Be(ae(t.rootHoverIcon),{pseudoSelector:"hover",innerSelector:'[data-grab="button-icon"]'})]],linkFunctionalityDomAttributes:n,classNames:["dmWidget",t.buttonTypeCSSClass??"",a?"hover":"",u?"data-disabled":"",f||""],grabId:c||"button-root","data-disabled":u,...l,children:[i&&s.jsx(l1,{styles:[t.icon,u&&t.iconDisabled],"data-grab":"button-icon",className:"icon",children:i}),o&&s.jsx(l1,{styles:[t.icon,u&&t.iconDisabled],"data-grab":"button-icon",className:`icon ${o}`}),s.jsx(Z,{styles:[d.text,ew,t.text,u&&t.disabledText],grabId:"button-text",domAttrs:{className:"text"},tag:te.span,children:p})]})},ZC={common:{maxWidth:"revert",whiteSpace:"revert",display:"inline-block"}},QC={common:{"&:after":{display:"none"},display:"flex",alignItems:"center",justifyContent:"center"}},JC={text:ZC,root:QC},ew={common:{flexGrow:"1"}},tw=e=>{const t={...e.styles,root:[...e.styles.root?[e.styles.root]:[],{common:{display:"none"}}]};return s.jsxs(s.Fragment,{children:[s.jsx(lf,{...e}),s.jsx(lf,{...e,isDisabled:!e.isDisabled,styles:t})]})};function Ya(e){return $e.isEditor?s.jsx(tw,{...e}):s.jsx(lf,{...e})}function nw(e,t=!0){var o;const[n,r]=b.useState(()=>{var i;return((i=e.current)==null?void 0:i.scrollHeight)??0});return b.useEffect(()=>{if(!t)return;const i=e.current;if(!i)return;r(i.scrollHeight);const a=new ResizeObserver(l=>{const c=l[0];c&&r(c.target.scrollHeight)});return a.observe(i),()=>{a.disconnect()}},[e,t]),t?n:((o=e.current)==null?void 0:o.scrollHeight)??0}const rw=({styles:e,isOpen:t,arrowType:n})=>{const r=a=>{switch(a){case"arrow":default:return s.jsx(gr,{styles:[aw,e==null?void 0:e.itemArrowSvg,t?sw:{}],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1152 1792",fill:"currentColor",children:s.jsx("path",{fill:"inherit",d:"M1075 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"})});case"leftArrow":return s.jsx(gr,{styles:[lw,e==null?void 0:e.itemArrowSvg,t?cw:{}],xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 640 1792",children:s.jsx("path",{fill:"inherit",d:"M595 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"})});case"plus":return s.jsxs(M,{children:[s.jsx(M,{styles:[uw,t&&fw]}),s.jsx(M,{styles:[dw,t?pw:{}]})]})}},o=i();return s.jsx(M,{styles:[ow,e==null?void 0:e.itemArrowWrapper,o],"data-grab":"accordion-item-arrow-wrapper",children:s.jsx(M,{styles:[iw,e==null?void 0:e.itemArrow],"data-grab":"accordion-item-arrow",children:r(n)})});function i(){var l,c,u,f;const a={[h.COMMON]:{},[h.DESKTOP]:{},[h.TABLET]:{},[h.MOBILE]:{}};if(e!=null&&e.itemArrowWrapper&&Array.isArray(e.itemArrowWrapper)&&e.itemArrowWrapper.length>0){const p=e.itemArrowWrapper[0];if(p&&"common"in p){const d=p.common;d&&"width"in d&&(a[h.COMMON]={height:((l=d==null?void 0:d.width)==null?void 0:l.toString())+"px"})}}if(e!=null&&e.itemArrowWrapper&&Array.isArray(e.itemArrowWrapper)&&e.itemArrowWrapper.length>1){const p=e.itemArrowWrapper[1];if(p&&"desktop"in p){const d=p.desktop;d&&"width"in d&&(a[h.DESKTOP]={height:(c=d==null?void 0:d.width)==null?void 0:c.toString()})}if(p&&"tablet"in p){const d=p.tablet;d&&"width"in d&&(a[h.TABLET]={height:(u=d==null?void 0:d.width)==null?void 0:u.toString()})}if(p&&"mobile"in p){const d=p.mobile;d&&"width"in d&&(a[h.MOBILE]={height:(f=d==null?void 0:d.width)==null?void 0:f.toString()})}}return a}},ow={[h.COMMON]:{aspectRatio:"1 / 1",width:20}},iw={[h.COMMON]:{width:"100%",height:"100%",transition:"transform 0.3s ease-in-out",display:"flex",flexDirection:"column",position:"relative"}},aw={[h.COMMON]:{transition:"all 0.5s ease-in-out",fill:"currentColor",height:"100%",width:"100%"}},sw={[h.COMMON]:{transform:"rotate(180deg)"}},lw={[h.COMMON]:{transition:"all 0.5s ease-in-out",fill:"currentColor",height:"100%",width:"100%"}},cw={[h.COMMON]:{transform:"rotate(90deg)"}},uw={[h.COMMON]:{transition:"all 0.5s ease-in-out",transform:"rotate(-90deg)",position:"absolute",backgroundColor:"currentColor",width:"10%",height:"100%",left:" 50%",marginLeft:"-5%",top:"50%",marginTop:"-50%"}},dw={[h.COMMON]:{transition:"all 0.5s ease-in-out",transform:"rotate(-90deg)",backgroundColor:"currentColor",position:"absolute",width:"100%",height:"10%",left:"50%",marginLeft:"-50%",top:"50%",marginTop:"-5%",opacity:"1"}},fw={[h.COMMON]:{transform:"rotate(90deg)"}},pw={[h.COMMON]:{transform:"rotate(90deg)",opacity:0}},E6=()=>{const[e,t]=b.useState(!1);return b.useEffect(()=>t(!0),[]),e},M6=({vidSrc:e,imgSrc:t,alt:n,type:r,styles:o,lazy:i,dataGrab:a,isHidden:l=!1})=>{const c=E6();return l&&!c?s.jsx(M,{styles:o,"data-grab":a}):r==="VIDEO"?s.jsx(UC,{"data-grab":a,src:e,poster:t,controls:!1,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,styles:o}):s.jsx(ma,{"data-grab":a,src:t,alt:n,styles:o,loading:i?"lazy":void 0})},hw=({styles:e,...t})=>s.jsx(M6,{styles:[mw,e],dataGrab:"accordion-item-media",...t}),mw={[h.COMMON]:{width:123,borderRadius:0,borderStyle:"solid",maxWidth:"unset"},[h.MOBILE]:{maxWidth:"100%"}},j6=e=>{var T;const{onItemToggle:t,index:n,isOpen:r,styles:o,title:i,titleTag:a="h3",titleIcon:l=' ',desc:c,button:u,media:f,linkDomAttributes:p,showButton:d,arrowDirection:g,arrowType:y,hasTitleIcons:C,disableTransition:_}=e,x=b.useRef(null),m=()=>{t==null||t(n)},v=GC(a||"h3"),w=ht.getBoolean("runtime.ssr.accordion.scroll.height.fix",!1),S=nw(x,w),E=s.jsx(M,{"data-grab":"accordion-item-media-container",styles:[kw,o==null?void 0:o.mediaContainer],children:f&&s.jsx(hw,{styles:o==null?void 0:o.media,...f})});let j={};return x.current&&(j=Sw(_?3e5:S)),s.jsxs(WC,{styles:[gw,o==null?void 0:o.itemContainer],"data-grab":"accordion-item-container",children:[s.jsxs(M,{styles:[xw,g==="left"&&bw,o==null?void 0:o.itemTitleWrapper],onClick:m,tabIndex:0,onKeyDown:z=>{z.key==="Enter"&&m()},"data-grab":"accordion-item-title-wrapper",children:[i&&s.jsxs(Z,{grabId:"accordion-item-title",styles:[yw,o==null?void 0:o.itemTitle],tag:v,children:[C?s.jsx(rt,{styles:[vw,o==null?void 0:o.itemTitleIcon],"data-grab":"accordion-item-title-icon",dangerouslySetInnerHTML:{__html:l}}):null,s.jsx(rt,{styles:Cw,children:i})]}),s.jsx(rw,{styles:o,isOpen:r,arrowType:y})]}),s.jsx(M,{children:s.jsx(M,{ref:x,styles:[ww,r?j:{}],children:s.jsxs(M,{styles:[_w,o==null?void 0:o.itemDesc],"data-grab":"accordion-item-desc",children:[f&&E,s.jsxs(M,{styles:[Ow],children:[c&&s.jsx(Z,{grabId:"accordion-item-desc-text","data-auto":"desc",styles:[Be(Ew,{innerSelector:"p"}),o==null?void 0:o.desc],tag:te.div,domAttrs:{dangerouslySetInnerHTML:{__html:c}}}),d&&u&&s.jsx(Ya,{styles:{...(o==null?void 0:o.button)??{},root:[Mw,(T=o==null?void 0:o.button)==null?void 0:T.root]},linkFunctionalityDomAttributes:p,buttonContent:u})]})]})})})]})},gw={[h.COMMON]:{cursor:"pointer"}},vw={[h.COMMON]:{width:"20px",aspectRatio:"1 / 1",display:"flex","& svg":{fill:"currentColor"}}},xw={[h.COMMON]:{display:"flex",gap:8,alignItems:"center",justifyContent:"space-between",padding:"16px",paddingTop:16,paddingBottom:16}},bw={[h.COMMON]:{flexDirection:"row-reverse",justifyContent:"flex-end",gap:"12px"}},yw={[h.COMMON]:{margin:0,display:"flex",gap:"8px",alignItems:"center",flex:1,textAlign:"start"}},Cw={[h.COMMON]:{flex:1}},ww={[h.COMMON]:{overflow:"hidden",transition:"max-height 0.3s ease-out",height:"auto",maxHeight:0}};function Sw(e){return{[h.COMMON]:{maxHeight:e}}}const _w={[h.COMMON]:{padding:"16px",paddingTop:16,paddingBottom:16,margin:0,display:"flex",flexDirection:"row",justifyContent:"flex-start",gap:"24px",alignItems:"flex-start",flexWrap:"wrap"},[h.MOBILE]:{flexDirection:"column"}},Ow={[h.COMMON]:{display:"flex",flexDirection:"column",gap:16,textAlign:"start",flex:1}},kw={[h.COMMON]:{}},Ew={[h.COMMON]:{marginBlock:0,overflowWrap:"anywhere"}},Mw={[h.COMMON]:{width:200,paddingInlineStart:20,paddingInlineEnd:20,margin:0}},jw={title:"Title or Question",desc:"Describe the item or answer the question so that site visitors who are interested get more information. You can emphasize this text with bullets, italics or bold, and add links.",button:{text:"Button"},showButton:!0,showMedia:!0,media:{lazy:!1,type:"IMAGE",imgSrc:"https://du-cdn.cdn-website.com/duda_website/images/home/hp_performance.png?v=17"}},Tw=({styles:e,arrowDirection:t,arrowType:n,hasTitleIcons:r})=>s.jsx(s.Fragment,{children:$e.isEditor&&s.jsx(j6,{...jw,styles:{...e,itemContainer:[e==null?void 0:e.itemContainer,{[h.COMMON]:{display:"none"}}]},arrowDirection:t,arrowType:n,hasTitleIcons:r,index:0,isOpen:!0,disableTransition:!0})}),Aw={LAYOUT_1:{arrowDirection:"right",hasTitleIcons:!1,styles:{container:{[h.COMMON]:{gap:24}},itemTitleWrapper:{[h.COMMON]:{background:"#f2f2f2"}},itemArrowWrapper:{[h.COMMON]:{borderRadius:"50%",width:32,padding:4,backgroundColor:"#000",color:"#e3e3e3"}}}},LAYOUT_2:{arrowDirection:"right",arrowType:"plus",hasTitleIcons:!1,styles:{container:{[h.COMMON]:{gap:0}},itemTitleWrapper:{[h.COMMON]:{borderBottom:"1px solid #e3e3e3"}},itemArrowWrapper:{[h.COMMON]:{padding:8,width:30}}}},LAYOUT_3:{arrowDirection:"right",arrowType:"arrow",hasTitleIcons:!1,styles:{container:{[h.COMMON]:{border:"solid 1px #e1e1e1",borderBottom:"none"}},itemTitleWrapper:{[h.COMMON]:{padding:"18px 20px",borderBottom:"solid 1px #e1e1e1"}},itemDesc:{[h.COMMON]:{borderBottom:"solid 1px #e1e1e1",background:"#f2f2f2"}}}},LAYOUT_4:{arrowDirection:"right",hasTitleIcons:!0,styles:{container:{[h.COMMON]:{gap:10}},itemTitleWrapper:{[h.COMMON]:{background:"#f2f2f2"}},itemArrowWrapper:{[h.COMMON]:{padding:8,width:40}}}},LAYOUT_5:{arrowDirection:"left",arrowType:"leftArrow",hasTitleIcons:!1,styles:{}}},Nw=({_styles:e,layout:t="LAYOUT_1",itemsData:n,firstExpanded:r,closeOthers:o,openedIndex:i,addSchemaMarkup:a,titleTag:l="h3"})=>{var C,_,x,m,v,w,S,E,j;const[c,u]=b.useState(i!==void 0?[i]:r?[0]:[]);b.useEffect(()=>{u(i!==void 0?[i]:r?[0]:[])},[i,r]);const f=T=>{let z=[...c];const $=z.indexOf(T);$===-1?z.push(T):z.splice($,1),o&&(z=z.filter(Q=>Q===T)),u(z)},p=Aw[t],{styles:d}=p,g={container:[d==null?void 0:d.container,e==null?void 0:e.container],itemContainer:[d==null?void 0:d.itemContainer,e==null?void 0:e.itemContainer],itemTitleWrapper:[d==null?void 0:d.itemTitleWrapper,e==null?void 0:e.itemTitleWrapper],itemTitle:[d==null?void 0:d.itemTitle,e==null?void 0:e.itemTitle],itemTitleIcon:[d==null?void 0:d.itemTitleIcon,e==null?void 0:e.itemTitleIcon],itemArrowWrapper:[d==null?void 0:d.itemArrowWrapper,e==null?void 0:e.itemArrowWrapper],itemArrow:[d==null?void 0:d.itemArrow,e==null?void 0:e.itemArrow],itemArrowSvg:[d==null?void 0:d.itemArrowSvg,e==null?void 0:e.itemArrowSvg],itemDesc:[d==null?void 0:d.itemDesc,e==null?void 0:e.itemDesc],desc:[d==null?void 0:d.desc,e==null?void 0:e.desc],button:{root:[(C=d==null?void 0:d.button)==null?void 0:C.root,(_=e==null?void 0:e.button)==null?void 0:_.root],text:[(x=d==null?void 0:d.button)==null?void 0:x.text,(m=e==null?void 0:e.button)==null?void 0:m.text],rootHover:[(v=d==null?void 0:d.button)==null?void 0:v.rootHover,(w=e==null?void 0:e.button)==null?void 0:w.rootHover],rootHoverText:[(S=d==null?void 0:d.button)==null?void 0:S.rootHoverText,(E=e==null?void 0:e.button)==null?void 0:E.rootHoverText],buttonTypeCSSClass:(j=e==null?void 0:e.button)==null?void 0:j.buttonTypeCSSClass},mediaContainer:[d==null?void 0:d.mediaContainer,e==null?void 0:e.mediaContainer],media:[d==null?void 0:d.media,e==null?void 0:e.media]},y=b.useMemo(()=>{const T={"@context":"http://schema.org/","@type":"FAQPage",mainEntity:n.map(z=>({"@type":"Question",name:z.title,acceptedAnswer:{"@type":"Answer",text:z.desc}}))};return JSON.stringify(T)},[n]);return s.jsxs(M,{"data-auto":"runtime-accordion-widget",children:[a&&n.length>0?s.jsx("script",{"data-auto":"schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:y}}):null,s.jsx(VC,{styles:[Iw,g==null?void 0:g.container],"data-grab":"accordion-container",children:n.length===0?s.jsx(Dp,{}):n.map((T,z)=>b.createElement(j6,{...T,key:`item-${z}`,styles:g,arrowDirection:p.arrowDirection,arrowType:p.arrowType,hasTitleIcons:p.hasTitleIcons,onItemToggle:f,index:z,isOpen:c.includes(z),titleTag:l,disableTransition:i!==void 0}))}),s.jsx(Tw,{styles:g,arrowDirection:p.arrowDirection,arrowType:p.arrowType,hasTitleIcons:p.hasTitleIcons})]})},Iw={[h.COMMON]:{listStyleType:"none",overflow:"hidden",margin:0,padding:0,display:"flex",flexDirection:"column",gap:0}},Fn=()=>{const e=()=>$e.isEditor,t=()=>{var o,i;const r=(i=(o=globalThis.dmAPI)==null?void 0:o.getCurrentEnvironment)==null?void 0:i.call(o);return r==="preview"||r==="editor"};return{insideEditor:e,isInPreview:t,isInPreviewOrEditor:()=>e()||t()}},Pw=()=>b.useMemo(()=>Fn(),[]),{isInPreviewOrEditor:Lw}=Fn();async function Rw(e){if(!(!(window!=null&&window.runtime)||Lw())&&window._ecomm)try{await window._ecomm.ready,Bw("view_item",e.price,Dw(e))}catch(t){Ne.error({message:"Error sending view item analytics event",error:t})}}function $w(e){try{const t=e.selected_options_values?JSON.parse(e.selected_options_values):{};if(Object.keys(t).length==0)return e.name;const n=`${Object.values(t).join(" ")}`;return`${e.name} ${n}`}catch(t){return Ne.error({message:"Error getting name from product",error:t}),e.name}}function Dw(e){let t=$w(e);return{currency:window._ecomm.state.session.storeSettings.defaultCurrency.toUpperCase(),items:[{item_id:e.itemId,item_name:t,id:e.itemId,name:t,price:e.price,description:e.description}]}}function Bw(e,t,n){var r,o,i;(i=window==null?void 0:window.runtime)==null||i.tagManagerAPI.sendGAEvent({category:e,action:e,value:t,siteAlias:(o=(r=Ie())==null?void 0:r.Parameters)==null?void 0:o.SiteAlias,payload:n})}const c1=new Map,Bp={dispatch:(e,t,n)=>{const r=`${e}-${t}`;c1.set(r,n);const o=Ie(),i=new CustomEvent(r,{detail:n});return o.document.dispatchEvent(i)},listen(e,t,n){const r=`${e}-${t}`;return Ie().document.addEventListener(r,n),()=>Ie().document.removeEventListener(r,n)},listenWithReplay(e,t,n){const r=Bp.listen(e,t,n),o=`${e}-${t}`,i=c1.get(o);return i!==void 0&&queueMicrotask(()=>{const a=new CustomEvent(o,{detail:i});n(a)}),r}};var rn=(e=>(e.TEXT="TEXT",e.CHECKBOX="CHECKBOX",e.FILE="FILE",e))(rn||{});const zw=["event-ecomm-cartCreated","event-ecomm-cartUpdated","event-ecomm-cartCompleted","event-ecomm-cartCleared"],{str:_r}=fe,u1=5,Es=e=>(e==null?void 0:e.length)??0,Or={requiredText:e=>!!e||_r("ui.runtimessr.productCustomizations.errors.required"),requiredFile:e=>!!(e!=null&&e.length)||_r("ui.runtimessr.productCustomizations.errors.required"),maxFiles:e=>Es(e)<=u1||_r("ui.runtimessr.productCustomizations.errors.file.maxFiles",{max:u1.toString()}),requiredCheckbox:e=>!!(e!=null&&e.length)||_r("ui.runtimessr.productCustomizations.errors.checkbox.required"),minChoices:e=>t=>Es(t)>=e||_r("ui.runtimessr.productCustomizations.errors.checkbox.minChoices",{min:e.toString()}),maxChoices:e=>t=>Es(t)<=e||_r("ui.runtimessr.productCustomizations.errors.checkbox.maxChoices",{max:e.toString()}),exactlyChoices:e=>t=>Es(t)===e||_r("ui.runtimessr.productCustomizations.errors.checkbox.exactlyChoices",{exact:e.toString()})},Fw=e=>e.reduce((t,{type:n,id:r,mandatory:o,limitations:i})=>{t[r]||(t[r]=[]);const a=t[r];if(o)switch(n){case rn.TEXT:a.push(Or.requiredText);break;case rn.FILE:a.push(Or.requiredFile);break;case rn.CHECKBOX:a.push(Or.requiredCheckbox);break}return n===rn.FILE&&a.push(Or.maxFiles),i&&(i.min_choices&&i.max_choices?a.push(Or.exactlyChoices(i.min_choices)):i.min_choices?a.push(Or.minChoices(i.min_choices)):i.max_choices&&a.push(Or.maxChoices(i.max_choices))),t},{}),Uw=300,Hu=e=>typeof e=="string"?e.trim().length>0:Array.isArray(e)?e.length>0:!1;class Hw{constructor(t=[]){q(this,"list",[]);q(this,"values",{});q(this,"errors",{});q(this,"appliedPriceIds",{});q(this,"validationSchema",{});q(this,"debouncedApplyPrice");q(this,"updateValue",(t,n)=>{this.values[t]=n,this.errors[t]&&delete this.errors[t];const r=this.list.find(o=>o.id===t);if(!(!r||r.type===rn.CHECKBOX||!r.price)){if(!Hu(n)){this.appliedPriceIds[t]&&delete this.appliedPriceIds[t];return}this.debouncedApplyPrice(t)}});q(this,"validate",t=>{const n=this.values[t];for(const r of this.validationSchema[t]){const o=r(n);if(typeof o=="string"){this.errors[t]=o;return}}});q(this,"validateAll",()=>{this.list.forEach(t=>{this.validate(t.id)})});q(this,"isEmpty",()=>this.list.length===0);q(this,"isValid",()=>Object.keys(this.errors).length===0);q(this,"isFieldValid",t=>{const n=this.values[t],r=this.validationSchema[t]??[];for(const o of r)if(typeof o(n)=="string")return!1;return!0});q(this,"applyPriceIfValid",t=>{const n=this.values[t],r=this.isFieldValid(t),o=Hu(n);r&&o?this.appliedPriceIds[t]||(this.appliedPriceIds[t]=!0):this.appliedPriceIds[t]&&delete this.appliedPriceIds[t]});Cc(this,{validationSchema:!1,isEmpty:!1,isValid:!1,pricesSurcharge:Kr}),this.validationSchema=Fw(t),this.list=t,this.debouncedApplyPrice=Vc(this.applyPriceIfValid,Uw)}get pricesSurcharge(){return this.list.reduce((t,n)=>{if(n.type===rn.CHECKBOX){if(this.errors[n.id])return t;const r=this.values[n.id];if(!Hu(r))return t;const o=Array.isArray(r)?r:[];return t+(n.choices??[]).reduce((i,a)=>a.price&&a.label!==void 0&&o.includes(a.label)?i+a.price:i,0)}return this.appliedPriceIds[n.id]?t+(n.price??0):t},0)}}const Ww=(e,t)=>{const n=e.match(/-?\d+(?:[.,]\d+)?/);if(!n)return e;const r=n[0],i=/[.,]/.test(r)?t.toFixed(2):String(t);return e.replace(r,i)};yc({isolateGlobalState:!0});const T6="defvar12";class Vw{constructor(t){q(this,"product");q(this,"dropdownOptions",{});q(this,"paymentPlanOptions",[]);q(this,"variations",new Map);q(this,"selectedVariationKey","");q(this,"selectedPaymentPlan",null);q(this,"customizations");q(this,"applyCustomizationsSurcharge",({price:t,displayed_price:n})=>{const r=this.customizations.pricesSurcharge;if(!r)return{price:t,displayed_price:n};const o=t+r;return{price:o,displayed_price:Ww(n,o)}});q(this,"getDiscountPrice",({price:t,displayed_price:n})=>this.selectedPaymentPlan?{price:this.selectedPaymentPlan.plan_price,displayed_price:this.selectedPaymentPlan.plan_displayed_price}:{price:t,displayed_price:n});q(this,"getSelectedVariationDiscountPrice",({price:t,displayed_price:n,plans_prices:r})=>{const o=r.find(i=>{var a;return i.id===((a=this.selectedPaymentPlan)==null?void 0:a.id)});return o?{price:o.price,displayed_price:o.displayed_price}:{price:t,displayed_price:n}});q(this,"selectPaymentPlanOption",t=>{this.selectedPaymentPlan=t});q(this,"updatePaymentPlanOptions",()=>{if(!this.selectedVariation)return;const t=this.selectedVariation;this.paymentPlanOptions=this.paymentPlanOptions.map(n=>{const r=t.plans_prices.find(o=>o.id===n.id);return{...n,plan_price:(r==null?void 0:r.price)||t.price,plan_displayed_price:(r==null?void 0:r.displayed_price)||t.displayed_price}})});Cc(this,{selectedVariation:Kr,productData:Kr}),this.product=t,this.dropdownOptions=t.options,this.paymentPlanOptions=y5(t),this.selectedPaymentPlan=this.paymentPlanOptions[0],this.customizations=new Hw(t.customizations||[]),this.initVariations(t.variations),this.prepareAndSendGMEvent()}prepareAndSendGMEvent(){this.productData&&Rw(this.productData)}initVariations(t=[]){var o,i;const n=!!t.find(a=>a.price!==this.product.price),r=((o=Object.keys(this.dropdownOptions))==null?void 0:o.length)===1&&n;if(t.forEach(a=>{const l=a.selected_options_values;if(l&&(this.variations.set(zu(l),a),r)){const c=Object.entries(JSON.parse(l)),[u,f]=c[0],p=this.dropdownOptions[u].find(d=>d.value===f);p&&(p.label=`${p.label} - ${a.displayed_price}`)}}),!this.selectedVariationKey){const a=(i=t.find(l=>l.selected_options_values))==null?void 0:i.selected_options_values;if(a){const l=JSON.parse(a);this.selectedVariationKey=zu(l)}}}getSelectedField(t){const n=Z3(this.selectedVariationKey)[t];if(n&&this.dropdownOptions[t])return this.dropdownOptions[t].find(r=>r.value===n)}get selectedVariation(){return this.variations.get(this.selectedVariationKey)}get productData(){var r;const t=To(this.selectedVariation),n=this.getItemId(t);if(t){const o=((r=t.images[0])==null?void 0:r.image)||this.product.image;return{...this.product,...t,...this.applyCustomizationsSurcharge(this.getSelectedVariationDiscountPrice(t)),image:o,itemId:n,productId:this.product.identifier}}return{...this.product,...this.applyCustomizationsSurcharge(this.getDiscountPrice(this.product)),itemId:n,productId:this.product.identifier}}updateVariation(t,n){var r;if((r=this.selectedVariation)!=null&&r.selected_options_values){const o=JSON.parse(this.selectedVariation.selected_options_values);this.selectedVariationKey=zu({...o,[t]:n}),this.updatePaymentPlanOptions(),this.prepareAndSendGMEvent()}}onSelectedValuesChange(t){const n=this.product.images.reduce((r,o,i)=>({...r,[o.image]:i}),{});v3(()=>{const r=this.productData.image,o=n[r];Bp.dispatch("selected-image-changed","dynamic_page_collection.images",{newIndex:o,newSrc:r}),t(this.productData)})}getItemId(t){const n=this.product.identifier||this.product.sku,r=this.product.external_id||"",{identifier:o=T6,external_id:i=""}=t||this.defaultVariation||{};return`${n}_${o}:${r}_${i}`}get defaultVariation(){return this.product.variations.find(t=>!t.selected_options_values)}}const Gw=()=>typeof document<"u"&&!!document.querySelector('[data-auto="product-customizations"]'),Kw=()=>ht.getBoolean("runtime.ssr.productCustomizations")&&Gw(),Yw=({product:e,productState:t})=>{if(C6(e))return{elementAttributes:{},componentProps:{}};const{itemId:n,productId:r,price:o,internal_quantity:i}=e,{customizations:a}=t,c=(!!i||i===0)&&i<=0,u=qw(t.selectedPaymentPlan);return{elementAttributes:{"data-item-id":n,"data-item-price":o,"data-auto":"addToCart",onClick:async g=>{var C,_,x,m,v,w;if($e.isEditor||!window.dmAPI||!window._ecomm||c)return;const y=Kw();if(g.stopPropagation(),a.validateAll(),!(!a.isValid()&&y))try{const S={product_id:r,variation_id:((C=t.selectedVariation)==null?void 0:C.identifier)||T6,quantity:1,product_customizations:y?Zw(a):[]};await window._ecomm.ready,u?await((m=(_=window._ecomm)==null?void 0:_.buyProduct)==null?void 0:m.call(_,{...S,plan_id:((x=t.selectedPaymentPlan)==null?void 0:x.id)||""})):await((w=(v=window._ecomm)==null?void 0:v.addProduct)==null?void 0:w.call(v,S))}catch(S){const E={message:`Error in window._ecomm?.${u?"buyProduct":"addProduct"}`,tags:["__new-runtime__","native-ecom",u?"subscribe-to-product":"add-items-to-cart"],errorMessage:S};Ne.error(E)}}},componentProps:{isDisabled:c,isSubscribe:u}}},qw=e=>!!e&&e.id!=pa,Xw=(e,t=[])=>({id:e.id,type:e.type,value:t.map(({uploadedAt:n,...r})=>({...r,uploaded_at:n}))}),Zw=e=>e.list.map(t=>{const n=e.values[t.id];return t.type===rn.FILE?Xw(t,n):{id:t.id,type:t.type,value:e.values[t.id]}});class Qw{constructor(){q(this,"storeProducts",new Map);q(this,"currentProduct");Cc(this)}getProductById(t){return this.storeProducts.get(t)}addProduct(t){var r;if(C6(t))return;const n=t.identifier;return n&&!this.storeProducts.has(n)&&(this.currentProduct=new Vw(t),this.storeProducts.set(n,this.currentProduct),ht.getBoolean("runtime.ssr.productStore.internal.observer",!1)&&((r=window==null?void 0:window.runtime)!=null&&r.updateConnectedProductWidgets)&&this.currentProduct.onSelectedValuesChange(window.runtime.updateConnectedProductWidgets)),this.storeProducts.get(n)}}globalThis.productsStore=globalThis.productsStore||new Qw;const Jw=globalThis.productsStore,qa=e=>function(t){const n=C5(t.productView),r=Jw.addProduct(n);if(!r)return null;const o=kp(e);return s.jsx(o,{...t,productState:r})},eS=()=>{const{insideEditor:e}=Fn();return s.jsx("div",{"data-auto":"widgets-error-fallback",children:e()&&s.jsx("h4",{style:{fontSize:24},children:"Something went wrong. We are on it"})})};class tS extends Ce.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{additionalInfoToLog:n,componentName:r}=this.props,o={message:"Rendering error caught in error boundary. ",tags:["__new-runtime__","ErrorBoundary"],errorMessage:t==null?void 0:t.message,isEditor:$e.isEditor,additionalInfoToLog:n,componentName:r};Ne.warn(o)}render(){return this.state.hasError?s.jsx(eS,{}):this.props.children}}function _t({Comp:e,additionalInfoToLog:t,logProps:n,componentName:r}){return o=>{const i={...t};return r&&(i.componentName=r),n&&(i.childComponentProps=o),s.jsx(tS,{additionalInfoToLog:i,componentName:r,children:s.jsx(e,{...o})})}}const nS=O.div` cursor: auto; width: 100%; height: 100%; `;function rS(e){const t=_t({Comp:e,componentName:e.name||"withAddToCart",additionalInfoToLog:{tag:"native-ecom"},logProps:!0});return qa(n=>{const{productState:r,...o}=n,{productData:i}=r,{elementAttributes:a,componentProps:l}=Yw({product:i,productState:r});return i?s.jsx(nS,{...a,children:s.jsx(t,{...o,...l})}):s.jsx("div",{})})}function ga(e){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(e)}function oS(e,t){if(ga(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ga(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iS(e){var t=oS(e,"string");return ga(t)==="symbol"?t:String(t)}function jn(e,t,n){return t=iS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kr,Oi;function d1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function aS(e){for(var t=1;tlS.includes(n)))for(const[n,r]of Object.entries(e))t+=dS(n,r);else t=e;return t}function cS(e,t){const n=A6[e];return!n.maxWidth&&!n.minWidth?t:{[`@media ${Object.entries(n).map(([o,i])=>`(${N6(o,i)})`).join(" and ")}`]:t}}function uS(e={},t=!1){let n={};return Object.entries(e).forEach(([r,o])=>{const i=cS(r,o);Object.assign(n,i)}),t?{[Gc]:n}:n}function N6(e,t){return`${e==="maxWidth"?"max-width":"min-width"}: ${t}px`}function dS(e,t){const n=A6[e],r=pS(t);return!n.maxWidth&&!n.minWidth?`${r} `:`@media ${Object.entries(n).map(([i,a])=>`(${N6(i,a)})`).join(" and ")} { ${r}} `}function fS(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function pS(e){let t="";for(const[n,r]of Object.entries(e))t+=` ${fS(n)}: ${r}; `;return t}function zp(e={}){let t=e;if(hS(e)){const r={};for(const[o,i]of Object.entries(e))r[o]={default:i};t={rules:r}}return t}function hS(e){let t=!0;return["rules"].some(n=>n in e)?!1:t}const mS={[Et.DEFAULT]:h.COMMON,[Et.DESKTOP]:h.DESKTOP,[Et.MOBILE_PORTRAIT]:h.MOBILE,[Et.TABLET]:h.TABLET,[Et.LARGE_DESKTOP]:h.DESKTOP};function f1(e,t={}){try{const n=e.rules||{};return Object.entries(n).reduce((r,[o,i])=>(Object.entries(mS).forEach(([a,l])=>{const c=t[o]||o,u=i[a]||i[l];u&&(r[c]={...r[c]||{},[l]:u})}),r),{})}catch(n){throw Ne.error({message:"Failed to migrate old BP styles structure",errorMessage:n==null?void 0:n.toString(),tags:["widget migration","style migration","old breakpoints to new"]}),n}}var Br=(e=>(e.NO_BP="no-breakpoints",e.OLD_BP="old-breakpoints",e.NEW_BP="new-styles",e))(Br||{});function I6({stylesInput:e,migrationStyleKeys:t,monitorKey:n}){var r,o;if(!e)return e;try{const{newStyles:i,inputStylesType:a}=gS({stylesInput:e,migrationStyleKeys:t});return n&&a!==Br.NEW_BP&&ht.getBoolean(`runtime.ssr.widget.migration.${n}`,!1)&&Ne.info({widget:n,key:"breakpoints style migration",type:a,stylesInput:e,newStyles:i,tags:["style-migration"],siteAlias:(o=(r=Ie())==null?void 0:r.Parameters)==null?void 0:o.SiteAlias}),i}catch(i){Ne.error({message:"Failed to migrate old styles structure",errorMessage:i==null?void 0:i.toString(),tags:["style-migration","style-migration-error",n]})}}function gS({stylesInput:e={},migrationStyleKeys:t}){const n=vS(e);let r;switch(n){case Br.NO_BP:r=f1(zp(e)||{},t);break;case Br.OLD_BP:r=f1(e||{},t);break;default:r=e;break}return{newStyles:r,inputStylesType:n}}function vS(e){if(e&&typeof e=="object"){if("rules"in e)return Br.OLD_BP;const t=Object.values(e);return t.length===1&&e.buttonTypeCSSClass||t.length===0||t.some(n=>n[h.COMMON]||Object.values(n||{}).some(r=>r==null?void 0:r[h.COMMON]))?Br.NEW_BP:Br.NO_BP}return null}const xS={button:"root",buttonHover:"rootHover",disabledButton:"rootDisabled",textHover:"rootHoverText",iconHover:"rootHoverIcon",disabledIcon:"iconDisabled"};function bS(e){try{return I6({monitorKey:"addtocart",stylesInput:e,migrationStyleKeys:xS})}catch(t){throw Ne.error({message:"Failed to migrate old styles structure",errorMessage:t==null?void 0:t.toString(),tags:["AddToCart style migration"]}),t}}function yS(e){var t;return e?"show-icon"in e?{showIcon:e["show-icon"],iconName:(t=e["selected-icon"])==null?void 0:t.classname}:{showIcon:e.showIcon,iconName:e.iconName}:{showIcon:!1,iconName:""}}function CS(){return s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.005 8.66907e-07L9.94934 5L0.0468741 5L5.005 8.66907e-07Z",fill:"#313131"})})}const cf=({children:e,text:t})=>s.jsxs(rt,{"data-auto":"tooltip-container",styles:[wS,Be(ae(kS),{pseudoSelector:"hover",innerSelector:'[data-auto="tooltip-content"]'})],children:[e,s.jsxs(M,{styles:SS,"data-auto":"tooltip-content",children:[s.jsx(CS,{}),s.jsx(M,{styles:OS,"data-auto":"tooltip-content-box",children:s.jsx(Z,{styles:_S,grabId:"tooltip-content-text",children:t})})]})]}),wS={common:{height:"100%"}},SS={common:{visibility:"hidden",marginLeft:"25%",marginRight:"25%",display:"inline-flex",flexDirection:"column",justifyContent:"center",alignItems:"center",position:"relative",zIndex:"100"}},_S={common:{fontSize:"12px",fontStyle:"normal",fontWeight:"550",lineHeight:"18px",color:"#fff",flex:"1 0 0"}},OS={common:{display:"flex",maxWidth:"200px",alignItems:"flex-start",gap:"4px",padding:"10px 16px",borderRadius:"4px",background:"#313131"}},kS={common:{visibility:"visible"}},ES=({text:e,disabledText:t,_styles:n,iconProps:r,isDisabled:o,showButtonHoverEffect:i,showButtonDisabledEffect:a,isSubscribe:l})=>{const{showIcon:c,iconName:u}=yS(r),f=MS(n),{isInPreview:p}=Fn(),d=(o?t:l?fe.str("ui.runtimessr.addtocart.subscribe.title"):e)||fe.str("widget.addtocart.title"),g=()=>s.jsx(Ya,{styles:f,buttonContent:{text:d},dataGrab:"add-to-cart-button",iconClass:c&&u,isDisabled:a||o,className:"ssr-button",showHoverEffect:i});return l&&p()?s.jsx(cf,{text:fe.str("ui.runtimessr.addtocart.subscribe.tooltip.text"),children:s.jsx(g,{})}):s.jsx(g,{})};function MS(e){const t=bS(e);return{root:[jS,t==null?void 0:t.root],rootHover:t==null?void 0:t.rootHover,rootDisabled:[TS,t==null?void 0:t.rootDisabled],text:t==null?void 0:t.text,rootHoverText:t==null?void 0:t.rootHoverText,disabledText:t==null?void 0:t.disabledText,icon:t==null?void 0:t.icon,rootHoverIcon:t==null?void 0:t.rootHoverIcon,iconDisabled:t==null?void 0:t.iconDisabled,buttonTypeCSSClass:t==null?void 0:t.buttonTypeCSSClass}}const jS={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",minHeight:"32px",padding:"8px 14px",minWidth:"fit-content",textAlign:"center",boxSizing:"border-box",margin:0}},TS={[h.COMMON]:{opacity:.6}},AS=rS(ES);function NS(){var e;try{return((e=window._ecomm)==null?void 0:e.state.cart.items.count)??0}catch{return 0}}function IS(){return 0}function PS(e){const t=window._ecomm;if(!t)return()=>{};const n=[];let r=!0;return t.ready.then(()=>{r&&(zw.forEach(o=>{r&&n.push(t.events.on(o,e))}),e())}).catch(()=>{}),()=>{r=!1,n.forEach(o=>o())}}function LS(){return b.useSyncExternalStore(PS,NS,IS)}const oi=O.button.attrs({type:"button"})(({styles:e})=>Kt([RS,e],!0)),RS={[h.COMMON]:{padding:"unset",backgroundColor:"unset",border:"unset",cursor:"pointer"}},uf=({name:e,dataGrab:t,styles:n})=>s.jsx(M,{styles:n==null?void 0:n.wrapper,children:s.jsx(M,{styles:[n==null?void 0:n.icon],"data-grab":t,className:e,"aria-hidden":"true"})}),p1=({styles:e,arrowStyle:t,goNext:n,goPrevious:r})=>s.jsxs(M,{styles:[$S,e==null?void 0:e.container],"data-auto":"pagination-arrows","data-grab":"pagination-container",children:[s.jsx(oi,{styles:[v1,e==null?void 0:e.buttonArrow],"data-grab":"pagination-button-arrow",onClick:r,"aria-label":"back","data-auto":h1("back"),children:s.jsx(uf,{styles:{wrapper:m1},...g1({pos:"left",arrowStyle:t})})}),s.jsx(oi,{styles:[v1,e==null?void 0:e.buttonArrow],"data-grab":"pagination-button-arrow","aria-label":"next","data-auto":h1("next"),onClick:n,children:s.jsx(uf,{styles:{wrapper:m1},...g1({pos:"right",arrowStyle:t})})})]});function h1(e){return`RuntimeSlider-navigation-${e}`}const m1={common:{lineHeight:1,'[class*=" icon-"]::before':{cursor:"pointer"}}};function g1({arrowStyle:e,pos:t}){return e==="arrow_thin"?{name:t==="left"?"icon-angle-left":"icon-angle-right"}:e==="arrow_double"?{name:t==="left"?"icon-double-angle-left":"icon-double-angle-right"}:{name:t==="left"?"icon-chevron-left":"icon-chevron-right"}}const $S={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"space-between",pointerEvents:"none"}},v1={[h.COMMON]:{backgroundColor:"transparent",pointerEvents:"auto",fontSize:40,padding:32},[h.MOBILE]:{padding:20}},P6=({goToCursor:e,styles:t,dataGrab:n="pagination-container",bulletsList:r})=>s.jsx(M,{styles:[DS,t==null?void 0:t.container],"data-auto":"pagination-bullets-base-container","data-grab":n,children:r.map(({styles:o,domAttributes:i={}},a)=>{const{"data-grab":l="pagination-button-bullet",...c}=i;return b.createElement(oi,{"data-grab":l,...c,styles:[BS,t==null?void 0:t.buttonBullet,o],key:a,onClick:()=>{e(a)},"aria-label":`go to slide ${a+1}`})})}),DS={[h.COMMON]:{display:"flex",justifyContent:"center",alignItems:"center"}},BS={[h.COMMON]:{backgroundColor:"transparent"}},zS=({cursor:e,totalPages:t,styles:n,...r})=>s.jsx(P6,{bulletsList:new Array(t).fill(null).map((o,i)=>{const a=i===e?" active":"";return{styles:[e===i?n==null?void 0:n.buttonBulletActive:void 0],domAttributes:{"data-auto":`pagination-button-bullet ${i}${a}`,"data-grab":`pagination-button-bullet${a}`}}}),styles:{container:[US,n==null?void 0:n.container],buttonBullet:[FS,n==null?void 0:n.buttonBullet]},...r}),FS={[h.COMMON]:{borderRadius:"50%",width:8,height:8,boxShadow:"0px 0px 2px rgba(24, 39, 75, 0.3), 0px 0px 3px rgba(24, 39, 75, 0.04)"}},US={[h.COMMON]:{gap:8}},x1=({thumbList:e,styles:t,cursor:n,...r})=>s.jsx(M,{styles:t==null?void 0:t.container,children:s.jsx(P6,{bulletsList:e.map((o,i)=>{const a=i===n?" active":"";return{styles:[WS(o==null?void 0:o.imgSrc),i===n?[KS,t==null?void 0:t.buttonThumbActive]:void 0],domAttributes:{"data-auto":`pagination-button-thumb ${i}${a}`,"data-grab":`pagination-button-thumb${a}`}}}),dataGrab:"pagination-container thumbs-container",...r,styles:{buttonBullet:[GS,t==null?void 0:t.buttonThumb],container:[HS,t==null?void 0:t.thumbsContainer,e.length>3?void 0:VS]}})}),HS={[h.COMMON]:{gap:20}};function WS(e){return{[h.COMMON]:{backgroundImage:`url(${e})`}}}const VS={[h.MOBILE]:{justifyContent:"center"}},GS={[h.COMMON]:{aspectRatio:"1 / 1",pointerEvents:"auto",backgroundSize:"cover",backgroundPosition:"center",borderWidth:3,borderColor:"transparent",borderStyle:"solid"}},KS={[h.COMMON]:{borderColor:"black"}};var on=(e=>(e.BULLETS="bullets",e.THUMBS="thumbs",e.ARROWS="arrows",e.ARROWS_AND_THUMBS="arrows_and_thumbs",e))(on||{});const YS=e=>{switch(e.type){case"arrows":return s.jsx(p1,{...e});case"thumbs":return s.jsx(x1,{...e});case"arrows_and_thumbs":return s.jsxs(s.Fragment,{children:[s.jsx(p1,{...e}),s.jsx(x1,{...e})]});default:return s.jsx(zS,{...e})}},qS=_t({Comp:YS,logProps:!0,componentName:"Pagination"});var L6=(e=>(e.slideFromRight="slideFromRight",e.slideFromLeft="slideFromLeft",e.slideFromTop="slideFromTop",e.slideFromBottom="slideFromBottom",e.fade="fade",e))(L6||{});O.div` position: relative; overflow: hidden; width: 100%; height: 100%; `;const XS={slideFromBottom:"top",slideFromTop:"bottom",slideFromRight:"left",slideFromLeft:"right",fade:"opacity"},ZS=({distanceFromIndex:e,transitionDuration:t,transitionType:n})=>{const r=XS[n||"slideFromRight"];switch(n){case"fade":return{left:0,opacity:`${e===0?1:0}`,transition:`${r} ${t}s`};default:return{[r]:`${e>0?"100%":e===0?"0":"-100%"}`,transition:`${r} ${t}s`}}};O.div` width: 100%; height: 100%; bottom: 0; position: absolute; ${e=>({...ZS(e)})} `;const QS={href:"#"},JS=O.a` ${Gc} { ${e=>ri(e==null?void 0:e.styles)} &:hover { ${e=>ri(e==null?void 0:e.hoverStyles)} } } `,e_=(e,t=QS)=>n=>s.jsx(JS,{...t,children:s.jsx(e,{...n})}),t_=O.div(e=>uS(e.styles)),Wu=({tag:e,domAttrs:t,...n})=>s.jsx(t_,{as:e,...t,...n}),Ms={links:[],ariaLabel:"Breadcrumbs",emptyMessage:"No breadcrumbs"},n_=O.nav` ${Gc} { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; ${e=>ri(e.styles)} } `,r_=O.span` ${Gc} { ${e=>ri(e==null?void 0:e.styles)} transform: ${e=>(e==null?void 0:e.direction)==="rtl"?"rotate(180deg)":"rotate(0)"}; display: flex; width: 16px; svg { width: 100%; height: 100%; fill: currentColor; } } `,o_=e=>{switch(e){case"arrow":return s.jsx("svg",{"data-auto":"arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.46967 3.46967C5.76256 3.17678 6.23744 3.17678 6.53033 3.46967L10.5303 7.46967C10.8232 7.76256 10.8232 8.23744 10.5303 8.53033L6.53033 12.5303C6.23744 12.8232 5.76256 12.8232 5.46967 12.5303C5.17678 12.2374 5.17678 11.7626 5.46967 11.4697L8.93934 8L5.46967 4.53033C5.17678 4.23744 5.17678 3.76256 5.46967 3.46967Z",fill:"currentColor"})});case"double_arrow":return s.jsxs("svg",{"data-auto":"double_arrow",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.21967 3.46967C3.51256 3.17678 3.98744 3.17678 4.28033 3.46967L8.28033 7.46967C8.57322 7.76256 8.57322 8.23744 8.28033 8.53033L4.28033 12.5303C3.98744 12.8232 3.51256 12.8232 3.21967 12.5303C2.92678 12.2374 2.92678 11.7626 3.21967 11.4697L6.68934 8L3.21967 4.53033C2.92678 4.23744 2.92678 3.76256 3.21967 3.46967Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.71967 3.46967C8.01256 3.17678 8.48744 3.17678 8.78033 3.46967L12.7803 7.46967C13.0732 7.76256 13.0732 8.23744 12.7803 8.53033L8.78033 12.5303C8.48744 12.8232 8.01256 12.8232 7.71967 12.5303C7.42678 12.2374 7.42678 11.7626 7.71967 11.4697L11.1893 8L7.71967 4.53033C7.42678 4.23744 7.42678 3.76256 7.71967 3.46967Z",fill:"currentColor"})]});case"divider":return s.jsx("svg",{"data-auto":"divider",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 2.58333C8.41421 2.58333 8.75 2.91912 8.75 3.33333V12.6667C8.75 13.0809 8.41421 13.4167 8 13.4167C7.58579 13.4167 7.25 13.0809 7.25 12.6667V3.33333C7.25 2.91912 7.58579 2.58333 8 2.58333Z",fill:"currentColor"})});case"slash":return s.jsx("svg",{"data-auto":"slash",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.59807 13.2321C6.19797 13.1249 5.96053 12.7136 6.06774 12.3135L8.48338 3.29821C8.59059 2.89811 9.00184 2.66068 9.40194 2.76788C9.80204 2.87509 10.0395 3.28634 9.93227 3.68644L7.51662 12.7017C7.40942 13.1018 6.99817 13.3393 6.59807 13.2321Z",fill:"currentColor"})});case"horizontal":return s.jsx("svg",{"data-auto":"horizontal",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4167 7.99998C13.4167 8.41419 13.0809 8.74998 12.6667 8.74998L3.33333 8.74998C2.91912 8.74998 2.58333 8.41419 2.58333 7.99998C2.58333 7.58576 2.91912 7.24998 3.33333 7.24998L12.6667 7.24998C13.0809 7.24998 13.4167 7.58576 13.4167 7.99998Z",fill:"currentColor"})})}},i_=(e,t,n,r)=>n?s.jsx(r_,{styles:e,direction:t,className:"bc-separator","aria-hidden":"true",children:o_(n)},r):null,a_=(e,t)=>e?s.jsx("span",{style:{color:"#C1C9CC",padding:"0 4px"},children:t}):null,s_=({links:e=Ms.links,styles:t,linksStyles:n,linksHoverStyles:r,separatorStyles:o,unlinkableItemsStyles:i,currentItemStyles:a,separatorType:l,ariaLabel:c=Ms.ariaLabel,showEmptyMessage:u,emptyMessage:f=Ms.emptyMessage}=Ms)=>s.jsx(n_,{links:e,styles:t,className:"bc-root dmBlockElement","aria-label":c,children:e.length?e.map((p,d)=>{var v,w,S,E,j;const y=e_(()=>s.jsx(Wu,{children:p.title},`text-${d}`),{...p.linkProps,styles:n,hoverStyles:r,className:"bc-item"}),C=(v=p==null?void 0:p.linkProps)!=null&&v.currentPage?s.jsx(Wu,{styles:a,domAttrs:{className:"bc-current-item"},"data-auto":"bc-current-item",children:p.title},`current-${d}`):null,_=((w=p==null?void 0:p.linkProps)==null?void 0:w.href)=="#"?s.jsx(Wu,{styles:i,domAttrs:{className:"bc-unlinkable-item"},"data-auto":"bc-unlinkable-item",children:p.title},`unlinkable-${d}`):null,x=((S=p==null?void 0:p.linkProps)==null?void 0:S.href)!="#"&&!((E=p==null?void 0:p.linkProps)!=null&&E.currentPage)?s.jsx(y,{},`Linkable-${d}`):null,m=ds.jsx(gr,{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:`0 0 ${e} ${e}`,fill:"none",...t,children:s.jsx("path",{d:"M7.99563 12C8.20688 12 8.38542 11.9285 8.53125 11.7856C8.67708 11.6427 8.75 11.4656 8.75 11.2544C8.75 11.0431 8.67854 10.8646 8.53563 10.7188C8.39271 10.5729 8.21562 10.5 8.00438 10.5C7.79313 10.5 7.61458 10.5715 7.46875 10.7144C7.32292 10.8573 7.25 11.0344 7.25 11.2456C7.25 11.4569 7.32146 11.6354 7.46438 11.7812C7.60729 11.9271 7.78438 12 7.99563 12ZM7.25 9H8.75V4H7.25V9ZM8.00583 16C6.90472 16 5.86806 15.7917 4.89583 15.375C3.92361 14.9583 3.07292 14.3854 2.34375 13.6562C1.61458 12.9271 1.04167 12.0767 0.625 11.105C0.208333 10.1333 0 9.09514 0 7.99042C0 6.88569 0.208333 5.85069 0.625 4.88542C1.04167 3.92014 1.61458 3.07292 2.34375 2.34375C3.07292 1.61458 3.92333 1.04167 4.895 0.625C5.86667 0.208333 6.90486 0 8.00958 0C9.11431 0 10.1493 0.208333 11.1146 0.625C12.0799 1.04167 12.9271 1.61458 13.6562 2.34375C14.3854 3.07292 14.9583 3.92167 15.375 4.89C15.7917 5.85847 16 6.89319 16 7.99417C16 9.09528 15.7917 10.1319 15.375 11.1042C14.9583 12.0764 14.3854 12.9271 13.6562 13.6562C12.9271 14.3854 12.0783 14.9583 11.11 15.375C10.1415 15.7917 9.10681 16 8.00583 16Z",fill:"currentColor"})}),f_=({size:e=20,...t})=>s.jsxs(gr,{width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[s.jsx("path",{d:"M15.6248 5.125L15.16 12.6438C15.0412 14.5648 14.9819 15.5254 14.5004 16.216C14.2622 16.5574 13.9558 16.8455 13.6003 17.062C12.8813 17.5 11.919 17.5 9.99428 17.5C8.0671 17.5 7.10348 17.5 6.38404 17.0612C6.02836 16.8443 5.72176 16.5556 5.48377 16.2136C5.00242 15.522 4.94434 14.5601 4.82821 12.6364L4.37476 5.125",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{d:"M3.25024 5.12501H16.7502M13.042 5.12501L12.5301 4.0688C12.1899 3.3672 12.0198 3.01639 11.7265 2.79761C11.6615 2.74908 11.5926 2.70591 11.5205 2.66853C11.1957 2.5 10.8058 2.5 10.0261 2.5C9.22685 2.5 8.82724 2.5 8.497 2.67559C8.42382 2.71451 8.35398 2.75943 8.28821 2.80988C7.99147 3.03753 7.82572 3.40116 7.4942 4.12845L7.03993 5.12501",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{d:"M8.12476 13.375V8.875",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),s.jsx("path",{d:"M11.8748 13.375V8.875",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),p_=({size:e=16,...t})=>s.jsxs(gr,{width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[s.jsx("path",{d:"M1.5 12.8333V11.1667C1.5 10.7985 1.79847 10.5 2.16667 10.5C2.53485 10.5 2.83333 10.7985 2.83333 11.1667V12.8333C2.83333 13.0174 2.98257 13.1667 3.16667 13.1667H12.8333C13.0174 13.1667 13.1666 13.0174 13.1666 12.8333V11.1667C13.1666 10.7985 13.4652 10.5 13.8333 10.5C14.2015 10.5 14.5 10.7985 14.5 11.1667V12.8333C14.5 13.6962 13.8442 14.4061 13.0039 14.4915L12.8333 14.5H3.16667C2.24619 14.5 1.5 13.7538 1.5 12.8333Z",fill:"currentColor"}),s.jsx("path",{d:"M7.33318 10.5C7.33318 10.8682 7.63165 11.1666 7.99985 11.1666C8.36805 11.1666 8.66652 10.8682 8.66652 10.5V3.77599L10.5285 5.63797C10.7889 5.89832 11.2109 5.89832 11.4713 5.63797C11.7316 5.37762 11.7316 4.95561 11.4713 4.69526L8.47125 1.69526C8.21085 1.43491 7.78885 1.43491 7.52852 1.69526L4.52851 4.69526C4.26817 4.95561 4.26817 5.37762 4.52851 5.63797C4.77259 5.88205 5.15859 5.89711 5.42044 5.68355L5.47122 5.63797L7.33318 3.77599V10.5Z",fill:"currentColor"})]}),h_=({size:e=40,...t})=>s.jsxs(gr,{width:e,height:e,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.69462 0H24L36 12V34.7926C36 37.6711 33.5088 40 30.4403 40H9.57031C6.49114 40 4 37.6711 4 34.7926V5.20733C3.99995 2.32878 6.61539 0 9.69462 0Z",fill:"#F4F4F5"}),s.jsx("path",{d:"M11 28H20.7143M11 32H28",stroke:"#D4D4D8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M24.0257 8.16V0L36 12H28.0171C24.4248 12 23.8593 9.44 24.0257 8.16Z",fill:"#D4D4D8"})]});function m_({title:e,children:t,styles:n,isAccordionOpen:r=!1,dataGrabs:o,onToggleOpen:i,...a}){const[l,c]=b.useState(r);b.useEffect(()=>{c(r)},[r]);const u=()=>{const f=!l;c(f),i==null||i(f)};return s.jsxs(M,{styles:[v_,n==null?void 0:n.container],...a,children:[s.jsxs(M,{styles:[g_,n==null?void 0:n.headerWrapper],onClick:u,"data-auto":"accordion-trigger","data-grab":o==null?void 0:o.textWrapperDataGrab,children:[s.jsx(Z,{styles:[x_,n==null?void 0:n.title],"data-grab":o==null?void 0:o.titleDataGrab,tag:te.h4,children:e}),s.jsx(Z,{styles:[y_(l),n==null?void 0:n.title],tag:te.h4,children:s.jsx(l_,{})})]}),s.jsx(M,{styles:b_,style:{display:l?"flex":"none"},"data-auto":"accordion-list",children:t})]})}const g_={[h.COMMON]:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",textTransform:"uppercase",fontWeight:400,fontSize:"16px",gap:"8px",lineBreak:"anywhere"}},v_={[h.COMMON]:{width:"100%"}},x_={[h.COMMON]:{maxWidth:"90%",cursor:"pointer",flex:1,textDecoration:"inherit",margin:0}},b_={[h.COMMON]:{marginBlockStart:"16px",flexDirection:"column",gap:"8px",display:"flex"}};function y_(e){return{[h.COMMON]:{display:"grid",alignItems:"center",transform:`rotate(${e?"0":"180deg"})`,aspectRatio:"1/1",margin:0}}}const fi=O.input(({styles:e,increaseSpecificity:t})=>Kt([C_,e],t)),C_={[h.COMMON]:{padding:"unset",backgroundColor:"unset",border:"0 solid #000000"}};function w_({label:e,checked:t,onChange:n,labelWrapperStyles:r,labelStyles:o,inputStyles:i,inputIconStyles:a,dataGrabs:l,...c}){return s.jsxs(Ka,{styles:[S_,r],...c,children:[s.jsx(fi,{type:"checkbox",checked:t,onChange:u=>{u.stopPropagation(),n(u.target.checked)},styles:{[h.COMMON]:{display:"none"}}}),s.jsx(M,{styles:[__,i],"data-grab":l==null?void 0:l.iconWrapperDataGrab,children:s.jsx(gr,{width:"8",height:"7",viewBox:"0 0 8 7",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-grab":(l==null?void 0:l.iconDataGrab)||"input-icon",styles:[a,{[h.COMMON]:{display:t?"unset":"none",background:"none"}}],children:s.jsx("path",{d:"M0.760254 3.57145L2.6191 5.5L6.47454 1.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),s.jsx(Z,{styles:[O_,o],"data-grab":l==null?void 0:l.labelDataGrab,tag:te.paragraph,children:e})]})}const S_={[h.COMMON]:{position:"relative",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer",color:"#313131"}},__={[h.COMMON]:{display:"grid",alignItems:"center",justifyContent:"center",width:"14px",height:"14px",backgroundColor:"#fff",border:"1px solid #ced6d9"}},O_={[h.COMMON]:{textTransform:"capitalize",flex:1,margin:0,display:"grid",alignItems:"center"}},Fp=({label:e,labelTag:t=te.paragraph,onChange:n,value:r,selectedValue:o,labelStyles:i,labelWrapperStyles:a,inputStyles:l,inputIconStyles:c,dataGrabs:u,...f})=>{const p=g=>{n(g.target.value)},d=o===r;return s.jsxs(Ka,{styles:[k_,a],...f,children:[s.jsx(fi,{type:"radio",onChange:p,value:r,checked:d,styles:{[h.COMMON]:{display:"none"}}}),s.jsx(rt,{"data-grab":(u==null?void 0:u.outerCircleDataGrab)||"radio-outer-circle",styles:[M_,l],children:s.jsx(rt,{"data-grab":(u==null?void 0:u.innerCircleDataGrab)||"radio-inner-circle",styles:[j_(d),c]})}),s.jsx(Z,{styles:[E_,i],tag:t,"data-grab":(u==null?void 0:u.labelDataGrab)||"radio-input-label",children:e||r})]})},k_={[h.COMMON]:{display:"flex",alignItems:"center",cursor:"pointer",gap:"8px",color:"#313131"}},E_={[h.COMMON]:{textTransform:"capitalize",flex:1,margin:0,display:"grid",alignItems:"center"}},M_={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px",border:"1px solid #ced6d9",borderRadius:"50%",boxSizing:"border-box",backgroundColor:"#fff",flexShrink:0}},j_=e=>({[h.COMMON]:{display:"block",opacity:e?1:0,width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"#30373a",flexShrink:0}}),T_=({title:e,options:t,selectedValue:n,onChange:r,styles:o,...i})=>{var a;return s.jsxs(M,{"data-auto":"radio-buttons-group",children:[s.jsx(Z,{tag:te.h4,styles:[I_,o==null?void 0:o.title],"data-grab":"radiogroup-title",children:e}),s.jsx(M,{styles:[A_,(a=o==null?void 0:o.fields)==null?void 0:a.wrapper],"data-grab":"radiogroup-fields",children:t.map(l=>{var c,u,f;return s.jsx(Fp,{label:l.label,value:l.value,disabled:l.disabled,selectedValue:n==null?void 0:n.value,onChange:()=>r(l),labelWrapperStyles:N_,inputStyles:(c=o==null?void 0:o.fields)==null?void 0:c.outerCircle,inputIconStyles:(u=o==null?void 0:o.fields)==null?void 0:u.innerCircle,labelStyles:(f=o==null?void 0:o.fields)==null?void 0:f.label,dataGrabs:{labelDataGrab:"radio-label"},...i},l.value)})})]})},A_={[h.COMMON]:{display:"flex",flexDirection:"column",gap:"4px",flexWrap:"wrap"}},N_={[h.COMMON]:{color:"inherit"}},I_={[h.COMMON]:{textAlign:"start",marginBlockEnd:"6px",lineHeight:"100%",marginTop:"0",fontSize:"16px",direction:"inherit"}};function P_(e){return s.jsxs(M,{styles:[L_,e.labelsWrapperStyles],children:[s.jsxs(Z,{styles:[y1,e.labelStyles],"data-auto":"min-input-label",tag:te.paragraph,children:[s.jsx("span",{children:e.rangeValues.start}),e.sign&&s.jsx("span",{children:e.sign})]}),s.jsxs(Z,{styles:[y1,e.labelStyles],"data-auto":"max-input-label",tag:te.paragraph,children:[s.jsx("span",{children:e.rangeValues.end}),e.sign&&s.jsx("span",{children:e.sign})]})]})}const y1={[h.COMMON]:{margin:0}},L_={[h.COMMON]:{width:"100%",display:"flex",justifyContent:"space-between",marginBlockEnd:"12px"}},R_=b.forwardRef(({trackStyles:e,trackDataGrab:t="range-slider-track",rangeValues:n,...r},o)=>{const i=[z_,e];return s.jsxs(M,{"data-auto":"slider-track-wrapper",styles:D_,ref:o,children:[s.jsx(M,{styles:[B_,i],"data-grab":t}),!r.hideRangeTrack&&s.jsx(M,{styles:[$_({...n,min:r.min,max:r.max}),i]})]})});function $_({start:e,end:t,min:n,max:r}){const o=r-n,i=(e-n)/o*100,a=(t-e)/o*100;return{[h.COMMON]:{height:"100%",position:"absolute",borderRadius:"24px",marginInlineStart:`${i}%`,width:`${a}%`,top:0}}}const D_={[h.COMMON]:{backgroundColor:"transparent",position:"relative",width:"100%"}},B_={[h.COMMON]:{opacity:.5,width:"100%"}},z_={[h.COMMON]:{height:"2px",backgroundColor:"#000",borderRadius:"6px"}};function F_(e){const t=ae([H_,e.trackStyles,e.thumbStyles,e.isActive&&C1,W_]),n=[U_,e.isActive&&C1,Be({[h.COMMON]:{height:"100%"}},{innerSelector:"&::-webkit-slider-runnable-track"}),Be(t,{innerSelector:"&&::-webkit-slider-thumb"}),Be(t,{innerSelector:"&::-moz-range-thumb"})];return s.jsx(fi,{type:"range",styles:n,...e})}const U_={[h.COMMON]:{margin:0,height:"200%",width:"100%",position:"absolute",WebkitAppearance:"none",MozAppearance:"none",pointerEvents:"none",cursor:"pointer",minHeight:"8px"},[h.MOBILE]:{minHeight:"20px"}},H_={[h.COMMON]:{position:"relative",WebkitAppearance:"none",backgroundColor:"#000",pointerEvents:"all",borderRadius:"50%",aspectRatio:"1/1",width:"unset",border:"0",boxShadow:"0 0 1px 1px rgba(0,0,0,0.4)",zIndex:2}},C1={[h.COMMON]:{zIndex:3,pointerEvents:"all"}},W_={[h.COMMON]:{height:"100%"},[h.TABLET]:{height:"100%"},[h.DESKTOP]:{height:"100%"},[h.MOBILE]:{height:"100%"}},w1=b.memo(F_);var va=(e=>(e.START="start",e.END="end",e))(va||{});const V_=({callback:e,msToWait:t=300})=>{const n=b.useRef(e);return b.useEffect(()=>{n.current=e},[e]),b.useCallback(Vc((...r)=>{n.current(...r)},t),[])};function G_({rangeValues:e,minRange:t=1,...n}){const[r,o]=b.useState(null),[i,a]=b.useState(!1),l=b.useRef(null),c=b.useRef(null),u=b.useRef("ltr"),f=b.useCallback(v=>{v&&(l.current=v)},[]),p=()=>{if(l.current){c.current=l.current.getBoundingClientRect();const v=Ie().getComputedStyle(l.current);u.current=v.getPropertyValue("direction")}},d=b.useCallback(v=>{if(c.current){const{width:w,left:S,right:E}=c.current,j=u.current==="rtl"?E-v.clientX:v.clientX-S,T=n.max-n.min;return Math.round(j/w*T+n.min)}return null},[]),{start:g,end:y}=e,C=v=>{const w=Math.min(v,y-t),S=Math.max(w,n.min);n.onChange({start:S,end:y})},_=v=>{const w=Math.max(v,g+t),S=Math.min(w,n.max);n.onChange({start:g,end:S})},m=V_({callback:v=>{const w=d(v);if(w){const E=Math.abs(e.start-w){!i&&m(v)},onMouseDown:()=>{p(),a(!0)},onMouseUp:()=>{o(null),a(!1)}},onStartInputChange:v=>{C(+v.target.value)},onEndInputChange:v=>{_(+v.target.value)}}}function K_(e){const{rangeValues:t}=e,{wrapperEvents:n,trackRefCB:r,onStartInputChange:o,onEndInputChange:i,activeSlider:a}=G_(e);return s.jsxs(M,{styles:Y_,...n,children:[s.jsx(R_,{trackStyles:e.trackStyles,min:e.min,max:e.max,rangeValues:t,hideRangeTrack:e.hideRangeTrack,trackDataGrab:e.trackDataGrab,ref:r}),s.jsx(w1,{min:e.min,max:e.max,value:t.start,"data-auto":"range-slider-start-input",thumbStyles:e.thumbStyles,trackStyles:e.trackStyles,onChange:o,isActive:a===va.START}),s.jsx(w1,{min:e.min,max:e.max,value:t.end,"data-auto":"range-slider-end-input",thumbStyles:e.thumbStyles,trackStyles:e.trackStyles,onChange:i,isActive:a===va.END})]})}const Y_={[h.COMMON]:{display:"flex",alignItems:"center",position:"relative",marginBlock:"12px",cursor:"pointer","::before":{content:'""',position:"absolute",top:"-8px",right:"0",bottom:"-8px",left:"0"}}},q_=e=>{const{currentValues:t}=e,[n,r]=b.useState({start:(t==null?void 0:t.start)||e.min,end:(t==null?void 0:t.end)||e.max}),o=b.useCallback(Vc(e.onChange,300),[]);return b.useEffect(()=>{(n.start!==(t==null?void 0:t.start)||n.end!==t.end)&&r({start:(t==null?void 0:t.start)||e.min,end:(t==null?void 0:t.end)||e.max})},[t]),s.jsxs(M,{"data-auto":"range-slider",styles:X_,children:[s.jsx(P_,{labelsWrapperStyles:e.labelsWrapperStyles,labelStyles:e.labelStyles,sign:e.sign,rangeValues:n}),s.jsx(K_,{onChange:i=>{r(i),o(i)},trackStyles:e.trackStyles,thumbStyles:e.thumbStyles,min:e.min,max:e.max,rangeValues:n,hideRangeTrack:e.hideRangeTrack,trackDataGrab:e.trackDataGrab,minRange:e.minRange})]})},X_={[h.COMMON]:{padding:"2px"}},Z_=e=>{var r,o,i,a,l,c;const t=b.useMemo(()=>{const u={"@context":"http://schema.org/","@type":"BreadcrumbList",itemListElement:e.links.filter(f=>(f==null?void 0:f.linkProps)&&(f==null?void 0:f.linkProps.href)!=="#").map((f,p)=>{var d,g;return{"@type":"ListItem",position:p+1,item:{name:f.title,...!((d=f==null?void 0:f.linkProps)!=null&&d.currentPage)&&{id:(g=f==null?void 0:f.linkProps)==null?void 0:g.href}}}})};return JSON.stringify(u)},[e]),n=b.useMemo(()=>zp(e._styles),[e._styles]);return s.jsxs("div",{"data-auto":"runtime-breadcrumbs-widget",children:[e.addSchemaMarkup&&e.links.length>1?s.jsx("script",{"data-auto":"schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:t}}):null,s.jsx(s_,{styles:(r=n.rules)==null?void 0:r.root,linksStyles:(o=n.rules)==null?void 0:o.links,linksHoverStyles:(i=n.rules)==null?void 0:i.linksHover,unlinkableItemsStyles:(a=n.rules)==null?void 0:a.unlinkableItems,currentItemStyles:(l=n.rules)==null?void 0:l.currentItem,separatorStyles:(c=n.rules)==null?void 0:c.separator,separatorType:e==null?void 0:e.separatorType,links:e.links,showEmptyMessage:$e.isEditor,emptyMessage:fe.str("ui.ed.breadcrumbs.empty.message")})]})},Q_=_t({Comp:Z_,componentName:"RuntimeBreadcrumbs"}),R6=e=>s.jsx(Q_,{...e});R6.skipHydration=!0;const Ut=(e,t)=>{Ne.error({message:e,tags:["__new-runtime__","RuntimeCalBooking"],isEditor:$e.isEditor,...t})},Fl=(e,t)=>{Ne.info({message:e,tags:["__new-runtime__","RuntimeCalBooking"],isEditor:$e.isEditor,...t})},Vu=(e,t)=>({errorMessage:t.error.message,errorCode:t.error.code,errorDetails:t.error.details,additionalInfoToLog:e});class xa extends Error{constructor(n){const{requestUrl:r,requestOptions:o,responseStatus:i,responseBody:a}=n;super(`Failed to fetch ${r}: ${i}`);q(this,"requestUrl");q(this,"requestOptions");q(this,"responseStatus");q(this,"responseBody");this.name="HttpError",this.requestUrl=r,this.requestOptions=this.toSerializableRequestOptions(o||{}),this.responseStatus=i,this.responseBody=a}toSerializableRequestOptions(n={}){return{method:n.method,mode:n.mode}}static isNotFoundError(n){return n instanceof xa&&n.responseStatus===404}}function J_(e){return{...e,startTime:e.start,endTime:e.end,status:e.status.toUpperCase()}}function e8(e){var t,n,r,o;return{...e,hosts:[{id:(t=e==null?void 0:e.user)==null?void 0:t.id,name:e.user.name,email:(n=e==null?void 0:e.user)==null?void 0:n.email,displayEmail:(r=e==null?void 0:e.user)==null?void 0:r.email,username:(o=e==null?void 0:e.user)==null?void 0:o.username}]}}const Nr=class Nr{constructor(){q(this,"calApiDomain","api.cal.com");q(this,"calClientId","")}get apiUrl(){return`https://${this.calApiDomain}/v2`}setCalDomain(t="api.cal.com"){this.calApiDomain=t}setCalClientId(t){this.calClientId=t}async fetchCalCom(t,n={}){const r=St.apiUrl+t,o=await fetch(r,n);if(!o.ok)throw new xa({requestUrl:r,requestOptions:n,responseStatus:o.status,responseBody:await this.getErrorResponseBody(o)});const i=await o.json();return i.data||i}async getErrorResponseBody(t){try{return await t.json()}catch{return await t.text()}}async cancelBooking({bookingUid:t,cancellationReason:n,seatUid:r}){var i;const o=`/bookings/${t}/cancel`;try{const a={method:"POST",headers:{"cal-api-version":Nr.CAL_API_VERSION,"Content-Type":"application/json"},body:JSON.stringify({cancellationReason:n,...r?{seatUid:r}:void 0})},l=await this.fetchCalCom(o,a);if(l.error)throw new Error(((i=l.error)==null?void 0:i.message)||l.error);return l}catch(a){throw Ne.error({message:`Failed to cancel booking with UID: ${t}`,errorMessage:a==null?void 0:a.toString(),url:o,tags:["cal-booking","cancel-booking"]}),a}}async getBooking(t){const n=`/bookings/${t}`,r=await this.fetchCalCom(n,{method:"GET"});return e8(r)}async getBookingBySeatUid(t){const n=`/bookings/by-seat/${t}`,r=await this.fetchCalCom(n,{method:"GET",headers:{"x-cal-client-id":this.calClientId,"cal-api-version":Nr.CAL_API_VERSION,"Content-Type":"application/json"}});return J_(r)}async getBookingByUidOrSeatUid(t){return Fl(`Getting booking data ${t}`),St.getBooking(t).catch(n=>{if(xa.isNotFoundError(n))return Fl(`Attempting to get booking data by seat UID ${t}`),St.getBookingBySeatUid(t);throw n})}async getTeamEvents({organizationId:t,teamId:n}){const r=`/organizations/${t}/teams/${n}/event-types`;return await this.fetchCalCom(r,{method:"GET",headers:{"x-cal-client-id":this.calClientId,"cal-api-version":Nr.CAL_API_VERSION,"Content-Type":"application/json"}})}async getTeamEventType({eventSlug:t,orgId:n,teamId:r}){const o=`/atoms/event-types/${t}/public?isTeamEvent=true&teamId=${r}&username=&orgId=${n}`;return await this.fetchCalCom(o,{method:"GET",headers:{"x-cal-client-id":this.calClientId,"cal-api-version":Nr.CAL_API_VERSION,"Content-Type":"application/json"}})}};q(Nr,"CAL_API_VERSION","2024-08-13");let df=Nr;const St=new df,ii={bookingTitle:"ui.runtimessr.calbooking.booking.title",durationMinutes:"ui.runtimessr.calbooking.duration.minutes",freeBookingPrice:"ui.runtimessr.calbooking.meta.price.free",priceIncludesTax:"ui.runtimessr.calbooking.meta.price.includes.tax",priceMightChangeMessage:"ui.runtimessr.calbooking.meta.price.might.change",paidBookingNextStepButton:"ui.runtimessr.calbooking.paid.booking.next.step.button"};var Jn=(e=>(e.STAFF_MEMBER_SELECTION="staff-member-selection-step",e.EVENT_SELECTION="event-selection-step",e.BOOKER="booker-step",e))(Jn||{}),Ul=(e=>(e.SELECTING_TIME="selecting_time",e.BOOKING="booking",e))(Ul||{}),pi=(e=>(e.SITE_THEME="site-theme",e.BASIC="basic",e))(pi||{}),Up=(e=>(e.FREE="FREE",e.PAID="PAID",e))(Up||{}),ba=(e=>(e.RESCHEDULE="reschedule",e.CANCEL="cancel",e))(ba||{}),ai=(e=>(e.CANCELLED="CANCELLED",e.PENDING="PENDING",e.RESCHEDULED="RESCHEDULED",e.ACCEPTED="ACCEPTED",e.REJECTED="REJECTED",e))(ai||{});const t8=fe.str,S1={ar:"ar",az:"az",bg:"bg",cs:"cs",da:"da",de:"de",el:"el",en:"en",es:"es",eu:"eu",fr:"fr",he:"he",hr:"hr",hu:"hu",id:"id",it:"it",iw:"iw",ja:"ja",ko:"ko",nl:"nl",no:"no",pl:"pl",pt:"pt","pt-br":"pt-BR",ro:"ro",ru:"ru",sk:"sk",sr:"sr",sv:"sv",ta:"ta",tr:"tr",uk:"uk",vi:"vi",zh:"zh-CN","zh-cn":"zh-CN","zh-tw":"zh-TW",fi:"fi",lv:"lv",is:"is",ca:"ca",nb:"nb"},n8="en",r8=()=>{var r;const{dmAPI:e}=Ie(),t=((r=e==null?void 0:e.getSiteCurrentLocale)==null?void 0:r.call(e))||"",[n]=t.split("-");return S1[t.toLowerCase()]||S1[n]||n8},V={atomsWrapper:"atoms-wrapper",bookerContainer:"booker-container",eventMetaCustomClassNames:{eventMetaContainer:"event-meta-container",eventMetaTitle:"event-meta-title",eventMetaTimezoneSelect:"event-meta-timezone-select",eventMetaChildren:"event-meta-children"},datePickerCustomClassNames:{datePickerContainer:"date-picker-container",datePickerTitle:"date-picker-title",datePickerDays:"date-picker-days",datePickerDate:"date-picker-date",datePickerDatesActive:"date-picker-dates-active",datePickerToggle:"date-picker-toggle"},availableTimeSlotsCustomClassNames:{availableTimeSlotsContainer:"available-time-slots-container",availableTimeSlotsHeaderContainer:"available-time-slots-header-container",availableTimeSlotsTitle:"available-time-slots-title",availableTimeSlotsTimeFormatToggle:"available-time-slots-time-format-toggle",availableTimes:"available-times"},confirmStep:{confirmButton:"confirm-button",backButton:"back-button "}},$6={atomsWrapper:`${V.atomsWrapper} reschedule-atoms-wrapper`,datePickerCustomClassNames:{...V.datePickerCustomClassNames,datePickerDatesActive:void 0}},o8=e=>({...V,confirmStep:{...V.confirmStep,backButton:`${V.confirmStep.backButton} ${e===pi.SITE_THEME?"button_2":""}`}}),i8=()=>({...V,...$6}),D6=e=>e?![ai.CANCELLED,ai.REJECTED].includes(e):!1,oo={isNonEmptyString:e=>!!e&&typeof e=="string",isInteger:e=>Number.isInteger(e),isNumber:e=>typeof e=="number",oneOf:e=>t=>e.includes(t)},a8={clientId:oo.isNonEmptyString,apiUrl:oo.isNonEmptyString,eventSlug:oo.isNonEmptyString,teamId:oo.isInteger,language:oo.isNonEmptyString,organizationId:oo.isInteger},s8=(e,t)=>{if(!t)return;const n=[];Object.entries(a8).forEach(([r,o])=>{o(e[r])||n.push(r)}),n.length>0&&Ut("Failed to validate booker received params",{additionalInfoToLog:e,invalidParams:n})},l8=(e,t)=>{var o,i;const n=Array.isArray((o=t==null?void 0:t.metadata)==null?void 0:o.multipleDuration),r=e;return{event_name:(t==null?void 0:t.title)||"",event_type_id:e.eventTypeId,slot_start:e.start,time_zone:e.timeZone,metadata:e.metadata,fields_responses:r.responses,customer_name:r.responses.name,customer_email:r.responses.email,...((i=e.rrHostSubsetIds)==null?void 0:i.length)&&{hosts_ids:e.rrHostSubsetIds},...n&&{slot_duration:r.slot_duration}}},Hp=e=>{var t;return((t=e==null?void 0:e.priceInfo)==null?void 0:t.pricingType)===Up.PAID},Kc=({currentEvent:e})=>e?Hp(e):!1,Wp=e=>e!==!1,c8=({eventIdentifier:e,eventSlug:t,currentEvent:n,isBookingDryRun:r,bookingSource:o},i)=>{var d,g;const{pricingType:a,formattedBasePrice:l,formattedTaxIncludedPrice:c,taxIncludedPrice:u,basePrice:f,taxIncluded:p}=(n==null?void 0:n.priceInfo)||{};return{calEventId:i!=null&&i.id?i.id.toString():"",calEventSlug:t||"",eventId:e,eventTitle:(i==null?void 0:i.title)||"",pricingType:a||Up.FREE,formattedBasePrice:l||"",formattedTaxIncludedPrice:c||"",taxIncluded:(p||!1).toString(),originalBookingPath:window.location.pathname,isTest:r.toString(),taxIncludedPrice:((d=u==null?void 0:u.toString)==null?void 0:d.call(u))||"",basePrice:((g=f==null?void 0:f.toString)==null?void 0:g.call(f))||"",bookingSource:o}},_1=()=>({title:"",userPrimaryEmail:"",startTime:new Date().toISOString(),user:{name:"",email:"",id:0,timeZone:"",username:"",avatarUrl:null},uid:"",endTime:new Date().toISOString(),attendees:[],status:ai.ACCEPTED,hosts:[]}),u8=(e,t)=>e.isInPreviewOrEditor()||$e.isServer||!t.isNativeBookingPublishingAvailable,Hl=e=>{const t=e.attendees[0];return"seatUid"in t?t.seatUid:""},Wl=e=>!!Hl(e),B6=e=>{var o;const t=Kc(e);let n=fe.str(ii.freeBookingPrice);const r=(o=e.currentEvent)==null?void 0:o.priceInfo;return t&&(r!=null&&r.basePrice)&&(n=r.taxIncluded?(r==null?void 0:r.formattedTaxIncludedPrice)||"":(r==null?void 0:r.formattedBasePrice)||""),n||""},d8=(e,t)=>e.formatToParts(t).filter(n=>n.type==="timeZoneName").map(n=>n.value).join("").trim(),f8=(e,t,n)=>{const r={hour:"numeric",minute:"2-digit",hour12:!0,...n};return d8(new Intl.DateTimeFormat(t,{...r,timeZoneName:"long"}),e)||Intl.DateTimeFormat().resolvedOptions().timeZone},O1=e=>e.replace(/(\+.*)@/,"@"),p8=e=>{var o,i;const t=(o=e.metadata)==null?void 0:o.eventTitle,n=e.hosts.map(a=>a.name).join(", "),r=(i=e.attendees)==null?void 0:i.map(a=>a.name).join(", ");return!t||!n||!r?e.title:t8(ii.bookingTitle,{eventTitle:t,staffMemberName:n,attendeeNames:r})},z6={isLoading:!0,confirmButtonDisabled:!1,bookerKey:Js(),eventSlug:null,rescheduleUid:null,cancelBookingId:null,confirmationData:null,calEventData:null,teamId:null,userName:null,language:"en",apiUrl:St.apiUrl,eventSelection:null,selectedHostId:null,widgetEditorStep:null},h8=e=>{const[t,n]=b.useState(()=>{var i,a;St.setCalDomain(e.calApiDomain),St.setCalClientId(e.clientId);const o=e.events&&e.events.length===1&&(((a=(i=e.events)==null?void 0:i[0])==null?void 0:a.slug)||e.eventSlug)||null;return{...z6,language:r8(),apiUrl:St.apiUrl,teamId:e.teamId,userName:e.userName,eventSlug:o,selectedHostId:null,widgetEditorStep:e.editorStep||null}});b.useEffect(()=>{n(o=>({...o,widgetEditorStep:e.editorStep||null}))},[e.editorStep]);const r=b.useMemo(()=>({setIsLoading:o=>n(i=>({...i,isLoading:o})),setConfirmButtonDisabled:o=>n(i=>({...i,confirmButtonDisabled:o})),resetBookerState:()=>n(o=>({...o,bookerKey:Js()})),setRescheduleUid:o=>n(i=>({...i,rescheduleUid:o})),setCancelBookingId:o=>n(i=>({...i,cancelBookingId:o})),setEventSlug:o=>n(i=>({...i,eventSlug:o})),setConfirmationData:o=>n(i=>({...i,confirmationData:o})),clearConfirmationData:()=>n(o=>({...o,confirmationData:null,bookerKey:Js()})),onBookingSuccess:o=>n(i=>({...i,rescheduleUid:null,confirmationData:o,bookerKey:Js()})),setEvent:o=>n(i=>({...i,event:o})),setCalEventData:o=>n(i=>({...i,calEventData:o})),setTeamId:o=>n(i=>({...i,teamId:o})),setUserName:o=>n(i=>({...i,userName:o})),setEventSelection:o=>n(i=>({...i,eventSelection:o})),setSelectedHostId:o=>{n(i=>({...i,selectedHostId:o}))},resetEditorStep:()=>{n(o=>({...o,widgetEditorStep:null}))}}),[]);return[t,r]},qt=b.createContext([z6,{setIsLoading:()=>{},setConfirmButtonDisabled:()=>{},resetBookerState:()=>{},setRescheduleUid:()=>{},setCancelBookingId:()=>{},setEventSlug:()=>{},setConfirmationData:()=>{},clearConfirmationData:()=>{},onBookingSuccess:()=>{},setCalEventData:()=>{},setTeamId:()=>{},setUserName:()=>{},setEventSelection:()=>{},setSelectedHostId:()=>{},resetEditorStep:()=>{}}]),F6=b.createContext(null),Lt=()=>{const e=b.useContext(F6);if(!e)throw new Error("useBookingContext must be used within a BookerLoggerProvider");return e},m8=b.memo(({children:e,state:t,actions:n,...r})=>{const o={...r},i=b.useMemo(()=>[t,n],[t,n]);return s.jsx(F6.Provider,{value:o,children:s.jsx(qt.Provider,{value:i,children:e})})}),Vl=()=>s.jsx("svg",{children:s.jsx("path",{d:"M8 8 L24 24 M8 24 L24 8"})}),Yc=e=>s.jsxs(g8,{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",...e,children:[s.jsx("line",{x1:"6",y1:"6",x2:"16",y2:"16",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"}),s.jsx("line",{x1:"6",y1:"16",x2:"16",y2:"6",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]}),g8=O.svg` position: absolute; right: 16px; top: 16px; cursor: pointer; `,qc=({children:e,dataAuto:t,width:n="580px",disableBodyScroll:r,header:o})=>s.jsxs(s.Fragment,{children:[r&&s.jsx(v8,{}),s.jsx(x8,{"data-auto":t,children:s.jsxs(b8,{width:n,children:[o,s.jsx(y8,{children:e})]})})]}),v8=kC` body { overflow: hidden !important; } `,x8=O.div` position: fixed; z-index: 999; left: 0; right: 0; top: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; `,b8=O.div` display: flex; flex-direction: column; gap: 24px; background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 12px; width: ${({width:e})=>e}; overflow: hidden; box-sizing: border-box; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); @media (max-width: 767px) { width: 100%; height: 100vh; max-height: unset; border-radius: 0; border: none; padding: 20px; } `,y8=O.div` max-height: 90vh; overflow-y: auto; padding: 32px; font-weight: 500; font-size: 13px; box-sizing: border-box; position: relative; cursor: default; font-family: 'Duda Sans', Roboto, sans-serif; color: ${({theme:e})=>e.bookerPrimaryColor}; @media (max-width: 767px) { display: flex; flex-direction: column; } `,Vp=O.span` font-size: 24px; font-weight: 700; `,Gl=O.hr` height: 1px; border: none; background: #e4e4e6; margin: 20px 0; `,Gp=O.div` display: flex; justify-content: center; width: 100%; gap: 8px; margin-block: auto; font-size: 16px; font-weight: 350; span { text-decoration: underline; cursor: pointer; &[data-disabled='true'] { pointer-events: none; opacity: 0.5; } } `,me=fe.str,Sr={confirmation:{preview:{title:"ui.runtimessr.calbooking.confirmation.preview.title",note:"ui.runtimessr.calbooking.confirmation.preview.note"},dryRun:{title:"ui.runtimessr.calbooking.confirmation.dryRun.title",note:"ui.runtimessr.calbooking.confirmation.dryRun.note"},cancel:{title:"ui.runtimessr.calbooking.cancelBooking.title",reason:"ui.runtimessr.calbooking.cancelBooking.reason",cancelling:"ui.runtimessr.calbooking.cancelBooking.cancelling",cancelButton:"ui.runtimessr.calbooking.cancelBooking.cancelButton",placeholder:"ui.runtimessr.calbooking.cancelBooking.cancelling.placeholder"},reschedule:{title:"ui.runtimessr.calbooking.reschedule.booking"},success:{reschedule:"ui.runtimessr.calbooking.confirmation.success.reschedule",who:"ui.runtimessr.calbooking.confirmation.success.who",or:"ui.runtimessr.calbooking.confirmation.success.or",back:"ui.runtimessr.calbooking.confirmation.success.back",title:"ui.runtimessr.calbooking.confirmation.success.title",cancel:"ui.runtimessr.calbooking.confirmation.success.cancel",change:"ui.runtimessr.calbooking.confirmation.success.change",video:"ui.runtimessr.calbooking.confirmation.success.videoCallLink",description:"ui.runtimessr.calbooking.confirmation.success.description",when:"ui.runtimessr.calbooking.confirmation.success.when",what:"ui.runtimessr.calbooking.confirmation.success.what",host:"ui.runtimessr.calbooking.confirmation.success.host",where:"ui.runtimessr.calbooking.confirmation.success.where"},pending:{title:"ui.runtimessr.calbooking.confirmation.pending.title",subtitle:"ui.runtimessr.calbooking.confirmation.pending.subtitle",change:"ui.runtimessr.calbooking.confirmation.pending.change",reschedule:"ui.runtimessr.calbooking.confirmation.pending.reschedule",or:"ui.runtimessr.calbooking.confirmation.pending.or",cancel:"ui.runtimessr.calbooking.confirmation.pending.cancel"}}},io=Sr.confirmation.success,ct=e=>`booking-modal-view-${e}`;var ya=(e=>(e.SUCCESS="success",e.CANCELLATION="cancellation",e.CANCELED="canceled",e.PENDING="pending",e))(ya||{});const Kl=({bookingData:e,children:t,dataAuto:n,onClose:r,title:o,svgIcon:i,subtitle:a,type:l="success"})=>{var v,w;const{dmAPI:c}=Ie(),u=(v=c==null?void 0:c.getSiteCurrentLocale)==null?void 0:v.call(c),f=new Date(e.startTime),p=new Date(e.endTime),d=(w=e.attendees[0])==null?void 0:w.timeZone,g=d?{timeZone:d}:{},y=f.toLocaleDateString(u,{weekday:"long",year:"numeric",month:"long",day:"numeric",...g}),C={hour:"numeric",minute:"2-digit",hour12:!0,...g},_=f.toLocaleTimeString(u,C),x=p.toLocaleTimeString(u,C),m=f8(f,u,C);return s.jsx(qc,{dataAuto:n,disableBodyScroll:!0,children:s.jsxs(C8,{"data-auto":ct(l),children:[r&&s.jsx(Yc,{onClick:r,"data-auto":ct("close-button")}),s.jsxs(M8,{children:[i&&s.jsx(j8,{type:l,"data-type":ct(`${l}-icon`),children:i}),s.jsx(Vp,{"data-auto":ct("title"),children:o}),a&&s.jsx(w8,{"data-auto":ct("subtitle"),children:a})]}),s.jsx(Gl,{}),s.jsxs(S8,{children:[s.jsxs(js,{children:[s.jsxs(Ts,{"data-auto":ct("what-label"),children:[me(io.what),":"]}),s.jsx(wn,{"data-auto":ct("what-value"),children:p8(e)})]}),s.jsxs(js,{children:[s.jsxs(Ts,{"data-auto":ct("when-label"),children:[me(io.when),":"]}),s.jsxs(k8,{isCanceled:l==="canceled",children:[s.jsx(wn,{"data-auto":ct("when-value"),children:y}),s.jsx(wn,{children:`${_} - ${x} ${m}`})]})]}),s.jsxs(js,{children:[s.jsxs(Ts,{"data-auto":ct("who-label"),children:[me(io.who),":"]}),s.jsxs(_8,{children:[s.jsxs("div",{children:[s.jsxs(wn,{children:[e.hosts.map(S=>S.name).join(", "),s.jsx(E8,{children:me(io.host)})]}),s.jsx(wn,{"data-auto":ct("who-user-value"),children:e.hosts.map(S=>O1(S.email)).join(", ")})]}),e.attendees.map(S=>s.jsxs("div",{"data-auto":ct("who-attendees-value"),children:[s.jsx(wn,{children:S.name}),s.jsx(wn,{children:O1(S.email)})]},S.email))]})]}),s.jsxs(js,{children:[s.jsxs(Ts,{"data-auto":ct("where-label"),children:[me(io.where),":"]}),e.videoCallUrl?s.jsx(wn,{"data-auto":ct("where-value"),children:s.jsxs(O8,{href:e.videoCallUrl,target:"_blank",rel:"noopener noreferrer",children:[me(io.video),s.jsx(uf,{name:"icon-external-link"})]})}):s.jsx(wn,{"data-auto":ct("where-value"),children:e.location})]})]}),t&&s.jsxs(s.Fragment,{children:[s.jsx(Gl,{}),s.jsx(Gp,{children:t})]})]})})},Ot={bgSuccess:"#e8fbee",textSuccess:"#60ac68",hostTagBg:"#D9E9FC",hostTagText:"#174983",bgCancelation:"#f5e3e2",textCancelation:"#ca3932",bgPending:"#DEE8FC",textPending:"#6786B1"},C8=O.div` margin: 0 auto; `,w8=O.div` font-weight: 350; font-size: 18px; line-height: 34px; color: #5a5a5a; margin-block-start: 4px; `,S8=O.div` display: flex; flex-direction: column; gap: 24px; line-height: 30px; `,js=O.div` display: grid; grid-template-columns: 140px 1fr; a { display: flex; align-items: center; gap: 4px; text-decoration: none; } `,Ts=O.span` font-weight: 500; font-size: 16px; color: #5d6068; text-align: start; width: 140px; `,_8=O.div` display: flex; flex-direction: column; gap: 16px; > div { display: flex; flex-direction: column; align-items: flex-start; } `,wn=O.span` text-align: start; word-break: break-word; font-weight: 350; font-size: 16px; `,O8=O.a` color: inherit; text-decoration: none; `,k8=O.span` text-align: start; display: flex; flex-direction: column; ${({isCanceled:e})=>e&&Pe` text-decoration: line-through; `} `,E8=O.span` background-color: ${Ot.hostTagBg}; color: ${Ot.hostTagText}; padding: 2px 6px; box-sizing: border-box; border-radius: 4px; margin-inline-start: 8px; font-size: 12px; font-weight: 500; `,M8=O.div` text-align: center; display: flex; flex-direction: column; `,Gu={success:{bg:Ot.bgSuccess,text:Ot.textSuccess,stroke:Ot.textSuccess},cancellation:{bg:Ot.bgCancelation,text:Ot.textCancelation,stroke:Ot.textCancelation},canceled:{bg:Ot.bgCancelation,text:Ot.textCancelation,stroke:Ot.textCancelation},pending:{bg:Ot.bgPending,text:Ot.textPending,stroke:"unset"}},j8=O.div` display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background-color: ${({type:e})=>{var t;return((t=Gu[e])==null?void 0:t.bg)||"transparent"}}; margin: 0 auto 16px auto; svg { width: 32px; height: 32px; stroke: ${({type:e})=>{var t;return((t=Gu[e])==null?void 0:t.stroke)||"currentColor"}}; color: ${({type:e})=>{var t;return((t=Gu[e])==null?void 0:t.text)||"currentColor"}}; stroke-width: 2; fill: none; } `,ao=Sr.confirmation.cancel,T8=({bookingUid:e,closeCancellation:t})=>{const[n,r]=b.useState(""),[o,i]=b.useState(!1),[a,l]=b.useState(null),[c,u]=b.useState(null),f=Lt();b.useEffect(()=>{St.getBookingByUidOrSeatUid(e).then(d=>{D6(d.status)?l(d):t()}).catch(d=>{Ut("Failed to get booking data (cancellation flow)",{errorMessage:d.message,additionalInfoToLog:f,...d})})},[]);const p=b.useCallback(async d=>{if(a)try{i(!0);const g=a.uid,y=Wl(a),C=y?Hl(a):void 0;if(y&&!C)throw new Error("Seat UID is required");const _=await St.cancelBooking({bookingUid:g,cancellationReason:d,seatUid:C});u(_)}catch(g){const y=g instanceof Error?g.message:String(g);Ut("Failed to cancel booking",{errorMessage:y,additionalInfoToLog:f})}finally{i(!1)}},[a]);return a?c?s.jsx(Kl,{bookingData:a,title:me(ao.title),svgIcon:s.jsx(Vl,{}),type:ya.CANCELED,onClose:t}):s.jsx(Kl,{bookingData:a,title:me(ao.title),svgIcon:s.jsx(Vl,{}),type:ya.CANCELLATION,children:s.jsxs(I8,{children:[s.jsx(A8,{children:me(ao.reason)}),s.jsx(N8,{value:n,name:"reason",onChange:d=>r(d.target.value),placeholder:me(ao.placeholder)}),s.jsx(P8,{onClick:()=>p(n),disabled:o,"data-auto":"booking-cancel-confirm-button",children:me(o?ao.cancelling:ao.cancelButton)})]})}):null},A8=O.label` text-align: start; font-size: 13px; margin-block-end: 8px; font-weight: 350; `,N8=O.textarea` && { background-color: transparent; border: 1px solid #c9cacd; border-radius: 4px; height: 100px; padding: 8px; box-sizing: border-box; resize: vertical; &::placeholder { color: #93959a; font-size: 13px; } } `,I8=O.div` display: flex; flex-direction: column; width: 100%; `,P8=O.button.attrs({type:"button"})` height: 32px; width: fit-content; background-color: #000; color: #fff; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 500; margin-inline-start: auto; padding-inline: 16px; margin-block-start: 16px; &:disabled { opacity: 0.5; cursor: not-allowed; } `,L8=()=>{const e=Lt(),[t,n]=b.useContext(qt),{isBookingDryRun:r}=e,{cancelBookingId:o}=t;return!r&&o?s.jsx(T8,{bookingUid:o??"",closeCancellation:()=>n.setCancelBookingId(null)}):null},R8=()=>s.jsx("svg",{viewBox:"0 0 24 24",children:s.jsx("polyline",{points:"4 12 10 18 20 6"})}),ki=Sr.confirmation.success,$8=({confirmationData:e,closeConfirmation:t,rescheduleBooking:n,cancelBooking:r})=>s.jsxs(Kl,{bookingData:e,dataAuto:"booking-confirmation-screen",onClose:t,type:ya.SUCCESS,title:me(ki.title),svgIcon:s.jsx(R8,{}),children:[s.jsx("label",{children:me(ki.change)}),s.jsx("span",{onClick:n,"data-auto":"booking-confirmation-reschedule-button",children:me(ki.reschedule)}),s.jsx("label",{children:me(ki.or)}),s.jsx("span",{onClick:r,"data-auto":"booking-confirmation-cancel-button",children:me(ki.cancel)})]}),k1=Sr.confirmation.dryRun,D8=({closeConfirmation:e})=>s.jsxs(qc,{disableBodyScroll:!0,"data-auto":"booking-confirmation-screen",children:[s.jsx(Yc,{onClick:e}),s.jsxs(B8,{children:[s.jsx(z8,{children:s.jsx(Vl,{})}),s.jsx(Vp,{children:me(k1.title)})]}),s.jsx(Gl,{}),s.jsx(Gp,{children:me(k1.note)})]}),B8=O.div` text-align: center; display: flex; flex-direction: column; `,z8=O.div` display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background-color: #fae3e4; margin: 0 auto 16px auto; svg { width: 32px; height: 32px; stroke: #bc3834; stroke-width: 2; stroke-linecap: round; fill: none; } `,F8=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 28 28",fill:"none",stroke:"none",children:s.jsxs("g",{transform:"translate(4,4)",children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.16679 4.79102C3.89052 4.79102 3.62557 4.90076 3.43022 5.09611C3.23487 5.29146 3.12512 5.55641 3.12512 5.83268V15.8327C3.12512 16.1089 3.23487 16.3739 3.43022 16.5693C3.62557 16.7646 3.89052 16.8743 4.16679 16.8743H9.82929C10.1745 16.8743 10.4543 17.1542 10.4543 17.4993C10.4543 17.8445 10.1745 18.1243 9.82929 18.1243H4.16679C3.559 18.1243 2.97611 17.8829 2.54634 17.4531C2.11656 17.0234 1.87512 16.4405 1.87512 15.8327V5.83268C1.87512 5.22489 2.11656 4.642 2.54634 4.21223C2.97611 3.78246 3.559 3.54102 4.16679 3.54102H14.1668C14.7746 3.54102 15.3575 3.78246 15.7872 4.21223C16.217 4.642 16.4585 5.22489 16.4585 5.83268V9.16602C16.4585 9.51119 16.1786 9.79102 15.8335 9.79102C15.4883 9.79102 15.2085 9.51119 15.2085 9.16602V5.83268C15.2085 5.55642 15.0987 5.29146 14.9034 5.09611C14.708 4.90076 14.4431 4.79102 14.1668 4.79102H4.16679Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0004 12.291C13.5047 12.291 12.2921 13.5036 12.2921 14.9993C12.2921 16.4951 13.5047 17.7077 15.0004 17.7077C16.4962 17.7077 17.7088 16.4951 17.7088 14.9993C17.7088 13.5036 16.4962 12.291 15.0004 12.291ZM11.0421 14.9993C11.0421 12.8132 12.8143 11.041 15.0004 11.041C17.1866 11.041 18.9588 12.8132 18.9588 14.9993C18.9588 17.1855 17.1866 18.9577 15.0004 18.9577C12.8143 18.9577 11.0421 17.1855 11.0421 14.9993Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5001 1.875C12.8453 1.875 13.1251 2.15482 13.1251 2.5V5.83333C13.1251 6.17851 12.8453 6.45833 12.5001 6.45833C12.1549 6.45833 11.8751 6.17851 11.8751 5.83333V2.5C11.8751 2.15482 12.1549 1.875 12.5001 1.875Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83313 1.875C6.17831 1.875 6.45813 2.15482 6.45813 2.5V5.83333C6.45813 6.17851 6.17831 6.45833 5.83313 6.45833C5.48795 6.45833 5.20813 6.17851 5.20813 5.83333V2.5C5.20813 2.15482 5.48795 1.875 5.83313 1.875Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.87512 9.16602C1.87512 8.82084 2.15494 8.54102 2.50012 8.54102H15.8335C16.1786 8.54102 16.4585 8.82084 16.4585 9.16602C16.4585 9.51119 16.1786 9.79102 15.8335 9.79102H2.50012C2.15494 9.79102 1.87512 9.51119 1.87512 9.16602Z",fill:"currentColor"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0001 13.1211C15.3453 13.1211 15.6251 13.4009 15.6251 13.7461V14.7405L16.2754 15.3908C16.5195 15.6349 16.5195 16.0306 16.2754 16.2747C16.0313 16.5188 15.6356 16.5188 15.3915 16.2747L14.5582 15.4414C14.441 15.3242 14.3751 15.1652 14.3751 14.9994V13.7461C14.3751 13.4009 14.6549 13.1211 15.0001 13.1211Z",fill:"currentColor"})]})}),E1=Sr.confirmation.pending,As=Sr.confirmation.success,U8=({confirmationData:e,closeConfirmation:t,rescheduleBooking:n,cancelBooking:r})=>s.jsxs(Kl,{bookingData:e,dataAuto:"booking-confirmation-pending-screen",onClose:t,type:ya.PENDING,title:me(E1.title),subtitle:me(E1.subtitle),svgIcon:s.jsx(F8,{}),children:[s.jsx("label",{children:me(As.change)}),s.jsx("span",{onClick:n,children:me(As.reschedule)}),s.jsx("label",{children:me(As.or)}),s.jsx("span",{onClick:r,children:me(As.cancel)})]}),M1=Sr.confirmation.preview,H8=({closeConfirmation:e})=>s.jsxs(qc,{disableBodyScroll:!0,"data-auto":"booking-confirmation-screen",children:[s.jsx(Yc,{onClick:e}),s.jsxs(W8,{children:[s.jsx(V8,{children:s.jsx(Vl,{})}),s.jsx(Vp,{children:me(M1.title)})]}),s.jsx(Gl,{}),s.jsx(Gp,{children:me(M1.note)})]}),W8=O.div` text-align: center; display: flex; flex-direction: column; `,V8=O.div` display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background-color: #fae3e4; margin: 0 auto 16px auto; svg { width: 32px; height: 32px; stroke: #bc3834; stroke-width: 2; stroke-linecap: round; fill: none; } `,G8=e=>{var f;const{closeConfirmation:t,confirmationData:n}=e,{isBookingDryRun:r}=Lt(),o=Fn(),i=(f=n==null?void 0:n.status)==null?void 0:f.toUpperCase(),a=o.isInPreviewOrEditor(),l=n&&r,c=n&&!r&&i===ai.ACCEPTED,u=n&&!r&&i===ai.PENDING;return c?s.jsx($8,{...e}):u?s.jsx(U8,{...e}):a?s.jsx(H8,{closeConfirmation:t}):l?s.jsx(D8,{closeConfirmation:t}):null},K8=()=>{const e=Lt(),[t,n]=b.useContext(qt),{isBookingDryRun:r}=e,{confirmationData:o}=t,{clearConfirmationData:i,setRescheduleUid:a,setCancelBookingId:l}=n,c=b.useCallback(()=>{if(!(o!=null&&o.uid))return;const p=Wl(o)?Hl(o):o.uid;a(p),i()},[o,a,i]),u=b.useCallback(()=>{if(!(o!=null&&o.uid))return;const p=Wl(o)?Hl(o):o.uid;l(p),i()},[o,l,i]);return!r&&o?s.jsx(G8,{confirmationData:o,closeConfirmation:i,rescheduleBooking:c,cancelBooking:u}):null},Vn=(e,t=2)=>`.${e}`.repeat(t),Y8=Pe` /* make dry run message visible inside booker */ div.fixed:has([data-testid='dry-run-msg']) { display: none; } .main { margin-block: unset; height: 100%; } ${Vn(V.bookerContainer)} { border-radius: 6px; width: 100% !important; height: 100% !important; isolation: isolate; min-height: unset !important; [class*='grid-area\:meta'] { position: static !important; height: 100%; overflow-y: auto; } [class*='grid-area\:main'] { overflow-y: auto; } form { // the way cal spacing works now: "var(--cal-spacing-4)" is now "calc(var(--spacing) * 4)" --cal-spacing-x2: calc(var(--spacing) * 2); --cal-spacing-x8: calc(var(--spacing) * 8); [data-testid='select-control'] { > div { height: var(--cal-spacing-x8); font-size: small; } div:has(> svg) { height: auto; } input { height: auto; } } // cal default styles textarea, // attendee address input doesn't have type explicitly set, so to refer it in css we need to do this not([type]) input:not([type]), input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='date'], input[type='time'], input[type='datetime-local'] { font-size: 0.875rem; background-color: var(--cal-bg, #fff); border-color: var(--cal-border); border-width: 1px; width: 100%; margin-block: var(--cal-spacing-x2); height: var(--cal-spacing-x8); padding-top: var(--cal-spacing-x2); padding-bottom: var(--cal-spacing-x2); &::placeholder { color: var(--cal-text, #000); } &:focus { border-color: var(--brand-color); } } [id^='react-select-'][id$='-placeholder'] { color: var(--cal-text, #000); } [data-fob-field-name='guests'] { input { background-color: transparent; height: 100%; margin: 0; border: none; } div:has(> input):focus-within { border-width: 1px; } } } } `,q8=Pe` .${V.atomsWrapper}:not(.booker-skeleton,.booker-markup) .${V.eventMetaCustomClassNames.eventMetaContainer} { > div { display: flex; flex-direction: column; // hide empty block (placeholder) > div[class='h-6'] { display: none; } // TODO: ask cal to add more class names // ensure these blocks are always at the start, keep order of internal booker elements and then show pricing: // 0) list of avatars > ul { order: -1; } // 1) providers names > p { order: -1; } // 2) event meta title > .${V.eventMetaCustomClassNames.eventMetaTitle} { order: -1; } // 3) event meta description > div[data-testid='event-meta-description'] { order: -1; } // 4) booking pricing meta section > div:has(> .cal-booking-price-meta-section) { order: -1; } // 5) parent of selected host meta section div:has(> .cal-booking-selected-host-meta-section) { order: -1; } } } `,X8=Pe` background-color: var(--btn-bg-color); background-image: var(--btn-bg-image); background-position: var(--btn-bg-position); background-repeat: var(--btn-bg-repeat); background-size: var(--btn-bg-size); border-color: var(--btn-border-color); border-bottom-color: var(--btn-border-b-color); border-left-color: var(--btn-border-l-color); border-right-color: var(--btn-border-r-color); border-top-color: var(--btn-border-t-color); border-radius: var(--btn-border-radius); border-bottom-left-radius: var(--btn-border-bl-radius); border-bottom-right-radius: var(--btn-border-br-radius); border-top-left-radius: var(--btn-border-tl-radius); border-top-right-radius: var(--btn-border-tr-radius); border-width: var(--btn-border-width); border-bottom-width: var(--btn-border-b-width); border-left-width: var(--btn-border-l-width); border-right-width: var(--btn-border-r-width); border-top-width: var(--btn-border-t-width); direction: var(--btn-text-direction); text-align: var(--btn-text-align); color: var(--btn-text-color); font-family: var(--btn-text-font-family); font-size: var(--btn-text-font-size); font-weight: var(--btn-text-font-weight); text-decoration: var(--btn-text-decoration); font-style: var(--btn-text-font-style); padding: 8px 14px; &:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-border-color); border-bottom-color: var(--btn-hover-border-b-color); border-left-color: var(--btn-hover-border-l-color); border-right-color: var(--btn-hover-border-r-color); border-top-color: var(--btn-hover-border-t-color); color: var(--btn-hover-text-color) !important; font-weight: var(--btn-hover-text-font-weight); text-decoration: var(--btn-hover-text-decoration); font-style: var(--btn-hover-text-font-style); } `,Z8=Pe` .${V.bookerContainer} { --cal-text-color: ${({theme:e})=>e.bookerPrimaryColor}; --cal-border-subtle: ${({theme:e})=>e.bookerPrimaryColor}; --cal-border: ${({theme:e})=>e.bookerPrimaryColor}; --cal-border-emphasis: ${({theme:e})=>e.bookerPrimaryColor}; border-color: ${({theme:e})=>e.bookerPrimaryColor}; background-color: inherit; color: ${({theme:e})=>e.bookerPrimaryColor}; .react-tel-input, .flag-dropdown { background-color: inherit !important; } label { color: ${({theme:e})=>e.bookerPrimaryColor}; ${({theme:e})=>e.evaluateStyles({styleKey:"bookerBody"})} * { color: ${({theme:e})=>e.bookerPrimaryColor}; } } [data-testid='select-control'] { > div { background-color: var(--cal-bg, #fff); } * { color: var(--cal-text); } input { border-width: 0 !important; } } textarea, input { background-color: ${({theme:e})=>e.bookerBackgroundColor}; border-color: ${({theme:e})=>e.bookerPrimaryColor}; border-width: 1px; &:not(:is(:focus, :hover)) { box-shadow: none; } &::placeholder { color: ${({theme:e})=>e.bookerPrimaryColor}; opacity: 0.25; } } [data-fob-field-name='guests'] { input { background-color: transparent !important; height: 100%; } div:has(> input) { background-color: ${({theme:e})=>e.bookerBackgroundColor}; } } } `,Q8=Pe` .${V.eventMetaCustomClassNames.eventMetaContainer} { svg, p { color: ${({theme:e})=>e.bookerPrimaryColor}; } } `,J8=Pe` .${V.datePickerCustomClassNames.datePickerContainer} { button { color: ${({theme:e})=>e.bookerPrimaryColor}; } // selected date button[data-disabled='false']:not( .${V.datePickerCustomClassNames.datePickerDatesActive} ) { color: ${({theme:e})=>e.bookerBackgroundColor}; background-color: ${({theme:e})=>e.bookerPrimaryColor}; } // current disabled date button button.bg-brand-default[data-disabled='true'] { color: ${({theme:e})=>e.bookerBackgroundColor}; background-color: ${({theme:e})=>e.bookerPrimaryColor}; } } .${V.datePickerCustomClassNames.datePickerDays} { color: ${({theme:e})=>e.bookerPrimaryColor}; font-size: 0.7rem; } .${V.datePickerCustomClassNames.datePickerTitle} { color: ${({theme:e})=>e.bookerPrimaryColor}; font-weight: 500; } .${V.datePickerCustomClassNames.datePickerDatesActive} { background-color: ${({theme:e})=>e.bookerSecondaryColor}; color: ${({theme:e})=>e.bookerPrimaryColor}; &:hover { border-color: ${({theme:e})=>e.bookerPrimaryColor}; } } .${V.datePickerCustomClassNames.datePickerToggle} { color: ${({theme:e})=>e.bookerPrimaryColor}; &:disabled { opacity: 0.4; } } `,eO=Pe` .${V.availableTimeSlotsCustomClassNames.availableTimeSlotsHeaderContainer} { background-color: transparent; } .${V.availableTimeSlotsCustomClassNames.availableTimeSlotsTitle} { color: ${({theme:e})=>e.bookerPrimaryColor}; font-weight: 500; font-size: 1rem; line-height: 1.5rem; } .${V.availableTimeSlotsCustomClassNames.availableTimes} { border-radius: var(--btn-border-radius); border-color: ${({theme:e})=>e.bookerPrimaryColor}; background-color: transparent; color: ${({theme:e})=>e.bookerPrimaryColor}; &:not(:disabled):hover { background-color: ${({theme:e})=>e.bookerSecondaryColor} !important; } } .${V.availableTimeSlotsCustomClassNames.availableTimeSlotsTimeFormatToggle} { background-color: transparent; border-color: ${({theme:e})=>e.bookerPrimaryColor}; button { color: ${({theme:e})=>e.bookerPrimaryColor}; } button[aria-checked='true'] { color: ${({theme:e})=>e.bookerPrimaryColor}; background-color: ${({theme:e})=>e.bookerSecondaryColor}; } } `,tO=Pe` button.${V.confirmStep.confirmButton} { ${X8} } button.${V.confirmStep.backButton} { display: none; opacity: 0; visibility: hidden; pointer-events: none; position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; } button[data-testid='add-guests'] { color: ${({theme:e})=>e.bookerPrimaryColor}; border: unset; &:not(:disabled):hover { background-color: transparent; } } `,U6=O.div` display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; background-color: ${({theme:e})=>e.bookerBackgroundColor}; .booker-wrapper { display: flex; width: 100%; height: 100%; } .${V.atomsWrapper} { height: 100%; width: 100%; text-align: initial; } .booker-wrapper.booker-loading { .${V.atomsWrapper}:not(.booker-skeleton) { display: none; } } booker-wrapper.booker-ready { .${V.atomsWrapper}:not(.booker-skeleton) { display: block; } } ${Y8} ${q8} ${Z8} ${Q8} ${J8} ${eO} ${tO} ${S6} .${V.eventMetaCustomClassNames.eventMetaTitle} { font-size: var(--font-size-h5); ${({theme:e})=>e.evaluateStyles({styleKey:"bookerTitle"})} color: ${({theme:e})=>e.bookerPrimaryColor} !important; } `,nO=e=>` [id="${e}"] ${Vn("booking-wrapper")} { container-type: inline-size; container-name: booking-wrapper; } @container booking-wrapper (max-width: 819px) { [id="${e}"] ${Vn(V.bookerContainer)} { --booker-meta-width: 100%; --booker-main-width: 100%; --booker-timeslots-width: 100%; display: flex !important; flex-direction: column; } [id="${e}"] ${Vn(V.bookerContainer)} > div { border: unset; height: auto !important; width: 100%; } } @container booking-wrapper (min-width: 820px) { [id="${e}"] ${Vn(V.bookerContainer)} { --booker-meta-width: 1fr; --booker-main-width: 2fr; --booker-timeslots-width: 1fr; width: 100% !important; } [id="${e}"] ${Vn(V.bookerContainer)}:has([class*='grid-area:timeslots']) { grid-template-columns: var(--booker-meta-width) var(--booker-main-width) var(--booker-timeslots-width) !important; } [id="${e}"] ${Vn(V.eventMetaCustomClassNames.eventMetaContainer)} { min-height: 100%; display: flex; flex-direction: column; } } @container booking-wrapper (min-width: 1500px) { [id="${e}"] ${Vn(V.bookerContainer)} { --booker-main-width: 750px; } } `,so={bookerPrimaryColor:"booker-primary",bookerSecondaryColor:"booker-secondary",bookerBackgroundColor:"booker-background",bookerTitle:"booker-heading",bookerSubtitle:"booker-subheading",bookerBody:"booker-body"},rO=({widgetId:e})=>s.jsxs(s.Fragment,{children:[s.jsx("style",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:nO(e)}}),s.jsx(sO,{"data-grab":so.bookerPrimaryColor}),s.jsx(lO,{"data-grab":so.bookerSecondaryColor}),s.jsx(cO,{"data-grab":so.bookerBackgroundColor}),s.jsx(uO,{"data-grab":so.bookerTitle}),s.jsx(aO,{children:s.jsx("p",{"data-grab":so.bookerSubtitle})}),s.jsx(dO,{"data-grab":so.bookerBody})]}),Xc=Pe` ${({theme:e})=>e.evaluateStyles({styleKey:"bookerBody"})} `,oO=Pe` ${({theme:e})=>e.evaluateStyles({styleKey:"bookerSubtitle"})} `,H6=Pe` ${({theme:e})=>e.evaluateStyles({styleKey:"bookerTitle"})} `,Kp=Pe` position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; pointer-events: none; `,Zc=O.div` ${Kp} `,iO=O.h5` ${Kp} `,W6=O.div.attrs({className:"dmNewParagraph"})` p { margin-block: 0; color: ${({theme:e})=>e.bookerPrimaryColor} !important; ${oO} } `,aO=O(W6)` ${Kp} `,sO=O(Zc)` color: ${({theme:e})=>e.bookerPrimaryColor}; `,lO=O(Zc)` background-color: ${({theme:e})=>e.bookerSecondaryColor}; `,cO=O(Zc)` background-color: ${({theme:e})=>e.bookerBackgroundColor}; `,uO=O(iO)` ${H6} `,dO=O(Zc)` ${Xc} `,V6=({children:e})=>s.jsx(W6,{children:s.jsx("p",{children:e})}),fO=async()=>{if(!window._ecomm)throw new Error("_ecomm is not defined");await window._ecomm.ready},pO=async e=>(await fO(),await window._ecomm.buyBooking(e)),hO=({portalRootSelector:e="#site_content",children:t})=>{const[n,r]=b.useState(null);return b.useEffect(()=>{var a,l,c,u;const o=(l=(a=Ie())==null?void 0:a.document)==null?void 0:l.createElement("div"),i=(u=(c=Ie())==null?void 0:c.document)==null?void 0:u.querySelector(e);return i==null||i.appendChild(o),r(o),()=>{o&&(i==null||i.removeChild(o))}},[]),n?Aa.createPortal(t,n):null};function G6({portalRootSelector:e=".dmContent",children:t,rootEl:n}){const r=b.useMemo(()=>{var o,i;return n||((i=(o=Ie())==null?void 0:o.document)==null?void 0:i.querySelector(e))},[]);return r?Aa.createPortal(t,r):null}const mO=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[s.jsx("path",{d:"M4.16699 10H15.8337",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M4.16699 10L9.16699 15",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M4.16699 10L9.16699 5",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]}),{str:gO}=fe,K6=({onClick:e,className:t,text:n=gO("ui.runtimessr.calbooking.back.button")})=>s.jsxs(vO,{"data-auto":"booker-back-button",className:t,onClick:e,children:[s.jsx(mO,{}),s.jsx("span",{children:n})]}),vO=O.button.attrs({type:"button"})` && { display: flex; align-items: center; gap: 8px; font-weight: 550; font-size: 14px; line-height: 22px; letter-spacing: 0px; background: none; border: none; cursor: pointer; color: ${({theme:e})=>e.bookerPrimaryColor}; } `,j1=({calBookerStep:e})=>{const t=Lt(),[n,r]=b.useContext(qt),[o,i]=b.useState(null),a=t.events.length>1,l=e===Ul.SELECTING_TIME,c=e===Ul.BOOKING,u=l&&!a,f=l&&n.rescheduleUid,p=l&&n.selectedHostId;if(!e||u&&!p||f)return null;const y=()=>{n.selectedHostId?r.setSelectedHostId(null):l?r.setEventSlug(null):c&&r.resetBookerState(),r.resetEditorStep()};return s.jsx("span",{ref:C=>{i(C==null?void 0:C.closest(".event-meta-container"))},children:o&&s.jsx(G6,{rootEl:o,children:s.jsx(xO,{onClick:y})})})},xO=O(K6)` && { margin-top: auto; padding-top: 16px; align-self: flex-start; } `,bO=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",...e,children:[s.jsx("path",{d:"M6.75 10.5C6.75 11.7427 8.7645 12.75 11.25 12.75C13.7355 12.75 15.75 11.7427 15.75 10.5C15.75 9.25725 13.7355 8.25 11.25 8.25C8.7645 8.25 6.75 9.25725 6.75 10.5Z",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M6.75 10.5V13.5C6.75 14.742 8.7645 15.75 11.25 15.75C13.7355 15.75 15.75 14.742 15.75 13.5V10.5",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M2.25 4.5C2.25 5.304 3.108 6.0465 4.5 6.4485C5.892 6.8505 7.608 6.8505 9 6.4485C10.392 6.0465 11.25 5.304 11.25 4.5C11.25 3.696 10.392 2.9535 9 2.5515C7.608 2.1495 5.892 2.1495 4.5 2.5515C3.108 2.9535 2.25 3.696 2.25 4.5Z",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M2.25 4.5V12C2.25 12.666 2.829 13.0875 3.75 13.5",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M2.25 8.25C2.25 8.916 2.829 9.3375 3.75 9.75",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})]}),{str:T1}=fe,A1=()=>{var l;const e=Lt(),t=Kc(e);if(!t&&!Wp(e.showFreePrice))return null;const n=B6(e),{taxIncluded:r,taxPercentage:o,basePrice:i}=((l=e.currentEvent)==null?void 0:l.priceInfo)||{};let a="";return t&&i&&r&&o&&(a=T1(ii.priceIncludesTax,{taxPercentage:o.toLocaleString(void 0,{style:"percent"})})),s.jsxs(yO,{className:"cal-booking-price-meta-section",children:[s.jsxs(CO,{children:[s.jsx(wO,{"aria-hidden":"true",width:18,height:18}),s.jsx(SO,{"data-auto":"cal-booking-price-value",children:n})]}),!!a&&s.jsxs(s.Fragment,{children:[s.jsx(N1,{"data-auto":"cal-booking-price-tax-value",children:a}),s.jsx(N1,{children:T1(ii.priceMightChangeMessage)})]})]})},yO=O.div` display: flex; flex-direction: column; font-size: 0.875rem; line-height: 1.25rem; margin-block: calc(var(--spacing) * 4); font-weight: 500; gap: calc(var(--spacing) * 2); `,CO=O.div` display: flex; align-items: center; justify-content: flex-start; gap: 10px; `,wO=O(bO)` fill: transparent; flex-shrink: 0; // need to align with other cal icons margin-inline: -1px; `,SO=O.div` position: relative; max-width: 100%; word-break: break-word; `,N1=O.div``,_O=({selectedHostId:e})=>{var r;const[t]=b.useContext(qt),n=b.useMemo(()=>{var o,i,a;return(a=(i=(o=t.calEventData)==null?void 0:o.subsetOfHosts)==null?void 0:i.find)==null?void 0:a.call(i,l=>l.user.id===e)},[(r=t.calEventData)==null?void 0:r.subsetOfHosts,e]);return n?s.jsx(OO,{className:"cal-booking-selected-host-meta-section",children:s.jsx("p",{children:n.user.name})}):null},OO=O.div` line-height: 1.25rem; font-weight: 700; font-size: 14px; letter-spacing: 0px; color: #6c727f; margin-bottom: 10px; .${pi.SITE_THEME} & { color: var(--color_1); } p { margin: 0 !important; } `,Y6=({calBookerStep:e})=>{const t=Lt(),n=Fn(),[r,o]=b.useContext(qt),{teamId:i,designStyle:a,isBookingDryRun:l}=t,{rescheduleUid:c,calEventData:u,confirmButtonDisabled:f,eventSlug:p,selectedHostId:d,isLoading:g}=r,{setConfirmButtonDisabled:y,resetBookerState:C,onBookingSuccess:_}=o,x=b.useMemo(()=>o8(a),[a]),m=b.useMemo(()=>i8(),[]),v=b.useCallback(async S=>{const E=S.data.uid,j=S.data.seatReferenceUid;try{if(l){_(_1());return}let T=null;j?T=await St.getBookingBySeatUid(j):T=await St.getBooking(E),_(T)}catch(T){Ut("Failed to get booking data after successful booking",{errorMessage:T.message,additionalInfoToLog:t,isSeatReferenceBooking:!!j,...T instanceof xa?T:{}})}},[_,t,l]),w=b.useCallback(async S=>{try{y(!0),!n.insideEditor()&&u?(await pO(l8(S,u)),C()):(_(_1()),Fl("Tried to create paid booking without calEventData",{additionalInfoToLog:t}))}catch(E){Ut("Failed to create paid booking",{errorMessage:E.message,additionalInfoToLog:t})}finally{y(!1)}},[y,n,u,C,_,t]);return b.useMemo(()=>{const S={isTeamEvent:!0,teamId:i,eventSlug:p||"",customClassNames:x,rescheduleClassNames:m,...Kc(t)&&!c?{handleCreateBooking:w,handleSlotReservation:async()=>{}}:{onCreateBookingSuccess:v},onCreateBookingError:E=>{Ut("Failed to create booking inside Booker atom",{...E instanceof Error?{errorMessage:E.message,additionalInfoToLog:t}:Vu(t,E)})},onReserveSlotError:E=>{Ut("Failed to reserve slot inside Booker atom",Vu(t,E))},onDeleteSlotError:E=>{Ut("Failed to delete slot inside Booker atom",Vu(t,E))},showNoAvailabilityDialog:!1,roundRobinHideOrgAndTeam:!0,silentlyHandleCalendarFailures:!0,eventMetaChildren:s.jsxs(s.Fragment,{children:[s.jsx(A1,{}),!g&&s.jsx(j1,{calBookerStep:e})]}),metadata:c8(t,u),confirmButtonDisabled:f};return d&&d!==-1&&(S.rrHostSubsetIds=[d],S.metadata={...S.metadata,selectedHostId:d==null?void 0:d.toString()},S.eventMetaChildren=s.jsxs(s.Fragment,{children:[s.jsx(_O,{selectedHostId:d}),s.jsx(A1,{}),!g&&s.jsx(j1,{calBookerStep:e})]})),S},[i,p,x,m,t,c,w,v,g,e,u,f,d])},kO=function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),EO=function(e){return"/"+e},I1={},q6=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=EO(l),l in I1)return;I1[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":kO,c||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((p,d)=>{f.addEventListener("load",p),f.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Ku=new Map,P1=e=>typeof e=="string"?e:JSON.stringify(e),Qc=()=>{const e=b.useCallback(r=>{const o=P1(r);return Ku.get(o)},[]),t=b.useCallback((r,o)=>{const i=P1(r);Ku.set(i,o)},[]),n=b.useCallback(()=>{Ku.clear()},[]);return{get:e,set:t,clear:n}},MO=e=>`${ht.getProperty("common.resources.cdn.host")}/booking/cal-atoms-locales/cal-locales/${e}.json`,jO=async e=>{const t=MO(e),n=await fetch(t);if(!n.ok)throw new Error(`Failed to load labels from ${t}: ${n.statusText}`);return n.json()},TO=e=>{const[t,n]=b.useState(void 0),[r,o]=b.useState(!1),i=Qc();return b.useEffect(()=>{(async()=>{try{if(e){const l=`booker-labels-${e}`,c=i.get(l);if(c){n(c),o(!0);return}const u=await jO(e);n(u),i.set(l,u)}}catch(l){Ut("Failed to load labels",{language:e,errorMessage:l instanceof Error?l.message:"Unknown error"})}finally{o(!0)}})()},[e]),{labels:t,labelsLoaded:r}},AO=fe.str,NO=e=>{const{labels:t,labelsLoaded:n}=TO(e),r=Lt(),[o]=b.useContext(qt);return{labels:b.useMemo(()=>{var u;const a=(u=o.calEventData)==null?void 0:u.requiresBookerEmailVerification,l=Kc(r),c=!o.rescheduleUid;return l&&c&&!a?{...t,confirm:AO(ii.paidBookingNextStepButton)}:t},[t,r,o.rescheduleUid,o.calEventData]),labelsLoaded:n}},X6=()=>q6(()=>import("./index-Bc5ILkDb-N4LrDOGw.js").then(e=>e.az),[]),Z6=b.lazy(()=>X6().then(e=>({default:e.Booker}))),IO=b.lazy(()=>X6().then(e=>({default:e.CalProvider})));function Q6({children:e,clientId:t,apiUrl:n,language:r}){const{labels:o,labelsLoaded:i}=NO(r);return i?s.jsx(b.Suspense,{children:s.jsx(IO,{clientId:t,options:{apiUrl:n},language:r,labels:o,children:e})}):null}const PO=Sr.confirmation.reschedule,LO=({bookerProps:e,onClose:t})=>{const[n,r]=b.useState(null),{bookingUid:o,customClassNames:i,...a}=e;b.useEffect(()=>{o&&St.getBookingByUidOrSeatUid(o).then(c=>{D6(c.status)?r(c):t()}).catch(c=>{Ut("Failed to get booking data (reschedule flow)",{bookingUid:o,additionalInfoToLog:{eventSlug:e.eventSlug,teamId:e.teamId,isTeamEvent:e.isTeamEvent,bookingUid:o},errorMessage:c.message,...c})})},[]);const l=b.useMemo(()=>{if(!n)return{};if(Wl(n)){const c=n.attendees.find(u=>u.seatUid===o);return c==null?void 0:c.metadata}return n.metadata},[n,o]);return n?s.jsx(qc,{width:"65vw",header:s.jsxs($O,{children:[s.jsx("span",{children:me(PO.title)}),s.jsx(Yc,{onClick:t})]}),dataAuto:"ssr-cal-booking-reschedule-modal",children:s.jsx(RO,{children:s.jsx(Z6,{...a,customClassNames:i,rescheduleUid:o,metadata:l})})}):null},RO=O.div` display: flex; flex-direction: column; .${$6.atomsWrapper} .main { margin: 0; } `,$O=O.div` text-align: center; display: flex; flex-direction: column; height: 58px; background-color: #f5f5f7; line-height: 58px; position: relative; padding: 0 32px; font-weight: 550; font-size: 16px; color: ${({theme:e})=>e.bookerPrimaryColor}; span { width: fit-content; } `,DO=()=>{const e=Lt(),[t,n]=b.useContext(qt),{clientId:r,isBookingDryRun:o}=e,{rescheduleUid:i,apiUrl:a,language:l}=t,c=Y6({calBookerStep:null});return!o&&i?s.jsx(U6,{"data-auto":"ssr-cal-booking-widget",className:"booking-wrapper",children:s.jsx(Q6,{clientId:r,apiUrl:a,language:l,children:s.jsx(LO,{bookerProps:{bookingUid:i??"",...c,customClassNames:c.rescheduleClassNames},onClose:()=>n.setRescheduleUid(null)})})}):null},BO=e=>{const t=b.useRef(null),n=Qc(),[r,o]=b.useState(!0);return{isLoading:r,fetchCalEvents:async({organizationId:a,teamId:l})=>{t.current&&(t.current.abort(),t.current=null);const c=new AbortController;t.current=c;try{const u=["cal-events",a,l],f=n.get(u);if(f)return f;o(!0);const p=await St.getTeamEvents({organizationId:a,teamId:l});return n.set(u,p),p}catch(u){c.signal.aborted||Ut("Failed to fetch cal events",{errorMessage:u.message,additionalInfoToLog:e})}finally{c.signal.aborted||o(!1),t.current===c&&(t.current=null)}}}},J6=()=>{const e=Lt(),{isLoading:t,fetchCalEvents:n}=BO(e),[r,o]=b.useState(()=>new Map),{organizationId:i,teamId:a,events:l}=e,c=!!(i&&a&&l.length>0);return b.useEffect(()=>{c&&n({organizationId:i,teamId:a}).then(u=>{const f=new Map(l.map(d=>[d.calEventId,d])),p=new Map;u==null||u.forEach(d=>{const g=f.get(d.id);if(g){const y=B6({currentEvent:{priceInfo:g==null?void 0:g.priceInfo}});p.set(g.identifier,{...d,displayPrice:y})}}),o(p)})},[]),{isLoading:t,calEventsMap:r,shouldFetchEvents:c}},zO=({teamId:e,organizationId:t,eventSlug:n},{onSuccess:r})=>{b.useEffect(()=>{e&&t&&n&&St.getTeamEventType({orgId:t,eventSlug:n,teamId:e}).then(r).catch(o=>{Ut("Failed to get cal event type by slug",{errorMessage:o.message,additionalInfoToLog:{teamId:e,organizationId:t,eventSlug:n}})})},[e,t,n])},e2=O.div.attrs({className:`bg-default dark:bg-muted grid max-w-full items-start dark:[color-scheme:dark] sm:motion-reduce:transition-none md:flex-row rounded-md sm:transition-[width] sm:duration-300 border-subtle border ${V.bookerContainer}`})` grid-template-areas: 'meta main timeslots' 'meta main timeslots'; width: calc( var(--booker-meta-width) + var(--booker-main-width) + var(--booker-timeslots-width) ); grid-template-columns: var(--booker-meta-width) 1fr var( --booker-timeslots-width ); grid-template-rows: 1fr 0fr; min-height: 450px; height: auto; `,Yp=O.div` opacity: 1; transform: none; `,FO=O(Yp).attrs({className:"[grid-area:meta]"})` width: 100%; min-width: 100%; `,t2=O(Yp).attrs({className:"[grid-area:main] md:border-subtle ml-[-1px] h-full flex-shrink px-5 py-3 md:border-l lg:w-[var(--booker-main-width)]"})``,n2=O(Yp).attrs({className:"[grid-area:timeslots] border-subtle rtl:border-default flex w-full flex-col px-5 py-3 pb-0 rtl:border-r ltr:md:border-l h-full overflow-hidden md:w-[var(--booker-timeslots-width)]"})``,UO=O.p.attrs({className:"text-subtle mt-2 text-sm font-semibold"})` font-size: 20px; font-weight: 600; `,HO=O.h1.attrs({className:`text-text text-xl font-semibold ${V.eventMetaCustomClassNames.eventMetaTitle} my-2`})` margin-top: 16px; `,WO=O.div.attrs({className:"w-full border-subtle mb-2 grid grid-cols-7 gap-4 border-b border-t text-center md:mb-0 md:border-0"})``,VO=({day:e})=>s.jsx("div",{className:`text-emphasis my-4 text-xs font-medium uppercase tracking-widest ${V.datePickerCustomClassNames.datePickerDays}`,children:e}),r2=O.div.attrs({className:"relative grid grid-cols-7 grid-rows-6 gap-1 text-center"})``,GO=()=>s.jsx("div",{className:"relative w-full pt-[100%]",children:s.jsx("button",{className:"bg-muted text-muted absolute bottom-0 left-0 right-0 top-0 mx-auto flex w-full items-center justify-center rounded-sm border-transparent text-center font-medium opacity-90 transition",disabled:!0,children:s.jsx("span",{className:"font-size-0 bg-emphasis inline-block animate-pulse rounded-md empty:before:inline-block empty:before:content-[''] h-8 w-9"})})}),KO=({children:e,isPreviousDay:t,isCurrentDay:n})=>{let r="disabled:text-bookinglighter absolute bottom-0 left-0 right-0 top-0 mx-auto w-full rounded-md border-2 border-transparent text-center text-sm font-medium transition disabled:cursor-default disabled:border-transparent disabled:font-light";return t||(r+=" hover:border-brand-default"),!n&&!t&&(r+=` ${V.datePickerCustomClassNames.datePickerDatesActive}`),s.jsx("div",{className:"relative w-full pt-[100%]",children:s.jsx("button",{className:r,"data-disabled":t?"true":"false",disabled:t,children:e})})},o2=O.div.attrs({className:V.datePickerCustomClassNames.datePickerContainer})` width: 100%; `,lo=()=>s.jsx("div",{className:"font-size-0 bg-emphasis inline-block animate-pulse rounded-md empty:before:inline-block empty:before:content-[''] mb-4 h-6 w-full"}),i2=({children:e})=>s.jsx(FO,{children:s.jsx("div",{className:`relative p-6 ${V.eventMetaCustomClassNames.eventMetaContainer}`,children:e})}),a2=()=>s.jsx(WO,{children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(e=>s.jsx(VO,{day:e},e))}),YO=({children:e})=>s.jsx("div",{className:"flex gap-2 w-full",children:s.jsx("button",{"data-testid":"time","data-disabled":"false",className:`group whitespace-nowrap items-center font-medium relative rounded-[10px] disabled:cursor-not-allowed gap-1 bg-default text-default border border-default enabled:hover:bg-muted enabled:hover:text-emphasis disabled:opacity-30 focus-visible:bg-subtle focus-visible:outline-none focus-visible:ring-0 focus-visible:shadow-outline-gray-focused shadow-outline-gray-rested enabled:hover:shadow-outline-gray-hover enabled:active:shadow-outline-gray-active transition-shadow duration-200 px-2.5 text-sm leading-none hover:border-brand-default min-h-9 mb-2 flex h-auto w-full flex-grow flex-col justify-center py-2 ${V.availableTimeSlotsCustomClassNames.availableTimes}`,type:"button",children:s.jsx("div",{className:"contents visible group-active:translate-y-[0.5px]",children:s.jsx("div",{className:"flex items-center gap-2",children:e})})})}),s2=({dayInWeek:e,day:t,slots:n})=>s.jsxs(s.Fragment,{children:[s.jsx("div",{className:`flex ${V.availableTimeSlotsCustomClassNames.availableTimeSlotsContainer}`,children:s.jsxs("div",{className:"mb-3 h-8",children:[s.jsx("span",{className:V.availableTimeSlotsCustomClassNames.availableTimeSlotsTitle,children:e})," ",s.jsx("span",{className:"available-time-slots-title",children:t})]})}),s.jsx("div",{className:`scroll-bar flex-grow overflow-auto ${V.availableTimeSlotsCustomClassNames.availableTimeSlotsContainer}`,children:s.jsx("div",{className:"flex w-[20%] flex-col only:w-full",children:n})})]}),l2=({month:e,year:t,actions:n})=>s.jsxs("div",{className:"w-full mb-2 flex items-center justify-between text-xl",children:[s.jsxs("span",{className:"text-default w-1/2 text-base",children:[s.jsx("span",{className:V.datePickerCustomClassNames.datePickerTitle,children:e})," ",s.jsx("span",{className:V.datePickerCustomClassNames.datePickerTitle,children:t})]}),n]}),qO=()=>s.jsx("div",{className:"calcom-atoms atoms-wrapper booker-skeleton",dir:"ltr",children:s.jsxs(e2,{children:[s.jsxs(i2,{children:[s.jsx(lo,{}),s.jsx(lo,{}),s.jsx(lo,{})]}),s.jsx(t2,{children:s.jsxs(o2,{children:[s.jsx(l2,{month:" ",year:" ",actions:s.jsx(lo,{})}),s.jsx(a2,{}),s.jsx(r2,{children:[...Array(35)].map((e,t)=>s.jsx(GO,{},t))})]})}),s.jsx(n2,{children:s.jsx(s2,{dayInWeek:" ",day:" ",slots:s.jsxs(s.Fragment,{children:[s.jsx(lo,{}),s.jsx(lo,{})]})})})]})}),XO=()=>s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M8 2v4"}),s.jsx("path",{d:"M16 2v4"}),s.jsx("rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}),s.jsx("path",{d:"M3 10h18"})]}),ZO=()=>s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}),QO=()=>s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),s.jsx("path",{d:"M2 12h20"})]}),JO=()=>{const e=b.useMemo(()=>{const n=new Date;return{year:n.getFullYear(),month:n.toLocaleString("default",{month:"long"}),day:n.getDate(),dayInWeek:n.toLocaleString("default",{weekday:"short"}),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}},[]),t={userName:fe.str("ui.runtimessr.calbooking.markup.userName"),eventName:fe.str("ui.runtimessr.calbooking.markup.eventType"),data:[{value:"30m",icon:s.jsx(ZO,{})},{value:"Online Meeting",icon:s.jsx(XO,{})},{value:e.timeZone,icon:s.jsx(QO,{})}]};return{date:e,mockInfo:t}},ek=()=>{const{date:e,mockInfo:t}=JO();return s.jsx("div",{className:"calcom-atoms atoms-wrapper booker-markup",dir:"ltr","data-auto":"cal-booking-markup",children:s.jsxs(e2,{children:[s.jsxs(i2,{children:[s.jsx(UO,{children:t.userName}),s.jsx(HO,{children:t.eventName}),t.data.map((n,r)=>s.jsxs(rk,{children:[n.icon," ",n.value]},r))]}),s.jsx(t2,{children:s.jsxs(o2,{children:[s.jsx(l2,{month:e.month,year:e.year}),s.jsx(a2,{}),s.jsx(r2,{children:[...Array(31)].map((n,r)=>{const o=r+1,i=e.day,a=o===i,l=os.jsx(YO,{children:e},e))})}const nk=O.div` display: flex; flex-direction: column; gap: 4px; overflow-y: hidden; align-items: center; `,rk=O.div` margin-top: 12px; display: flex; align-items: center; gap: 8px; `,ok=()=>{const e=E6(),t=Lt(),[n,r]=b.useContext(qt),[o,i]=b.useState(null),{organizationId:a,clientId:l,teamId:c}=t,{isLoading:u,language:f,apiUrl:p,bookerKey:d,eventSlug:g}=n,{setCalEventData:y,setIsLoading:C}=r;zO({teamId:c||void 0,eventSlug:g||"",organizationId:a},{onSuccess:y});const _=!!g&&!!l&&!!a;s8(t,_);const x=b.useCallback(j=>{i(j.state),j.state===Ul.SELECTING_TIME&&u&&C(!1)},[u,C]),m=e&&_,v=_&&u,w=!_,S=[t.designStyle];_&&S.push(u?"booker-loading":"booker-ready");const E=Y6({calBookerStep:o});return s.jsxs("div",{className:`booker-wrapper ${S.join(" ")}`,children:[m&&s.jsx(Q6,{clientId:l,apiUrl:p,language:f,children:s.jsx(Z6,{isBookingDryRun:t.isBookingDryRun,onBookerStateChange:x,...E},d)}),v&&s.jsx(qO,{}),w&&s.jsx(ek,{})]})},ik={selectionListWrapper:"booking-selection-list-wrapper"},qp=Pe` color: ${({theme:e})=>e.bookerPrimaryColor}; font-weight: 350; letter-spacing: 0px; `,ak=Pe` display: flex; flex-direction: column; `,sk=Pe` display: flex; align-items: flex-start; `,Jc=Pe` margin: 0; padding: 0; box-sizing: border-box; `,Yl=O.li` border: 1px solid ${({theme:e})=>e.bookerPrimaryColor}; border-radius: 8px; padding: 24px; background: ${({theme:e})=>e.bookerSecondaryColor} !important; cursor: pointer; transition: all 0.2s ease; position: relative; &:hover { box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1); transform: translateY(-1px); } &:focus { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } &:active { transform: translateY(0px); box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); } `,lk=O(Yl)` cursor: default; `,Xp=O.ul` display: flex; flex-direction: column; gap: 16px; list-style: none; padding-inline: 0; padding-block: 32px; margin-block: 1px; text-align: start; `,c2=O.div` ${sk} gap: 16px; `,u2=O.div` ${ak} gap: 12px; flex: 1; `,ff=O.h5` #dmRoot #dm && { ${Jc} color: ${({theme:e})=>e.bookerPrimaryColor}; margin: 0; flex: 1; font-weight: 550; letter-spacing: 0px; } #dm .${pi.SITE_THEME} && { color: ${({theme:e})=>e.bookerPrimaryColor}; } ${H6} color: ${({theme:e})=>e.bookerPrimaryColor} !important; `,d2=O.span` ${Jc} ${qp} flex-shrink: 0; ${Xc} color: ${({theme:e})=>e.bookerPrimaryColor} !important; margin-block: 8px 32px; display: block; `,ck=O.p` ${Jc} ${qp} line-height: 1.5; ${Xc} `;O.span` color: ${({theme:e})=>e.bookerPrimaryColor} !important; `;const uk=O.div` && { ${Jc} ${qp} ${Xc} } `,dk=O(M)` display: flex; flex-direction: column; padding-inline: 32px; width: 100%; border-width: 1px; border-style: solid; border-radius: 6px; background-color: ${({theme:e})=>e.bookerBackgroundColor}; border-color: ${({theme:e})=>e.bookerPrimaryColor}; color: ${({theme:e})=>e.bookerPrimaryColor}; overflow: auto; height: 100%; `,f2=O.div` max-width: 820px; width: 100%; margin: 0 auto; `,p2=O.div` position: sticky; top: 0; font-weight: 550; letter-spacing: 0px; z-index: 1; margin-block-start: 32px; display: flex; flex-direction: column; `,h2=({children:e,...t})=>s.jsx(dk,{...t,"data-grab":ik.selectionListWrapper,children:e}),{str:fk}=fe,pk=({identifier:e,calEventData:t,onSelect:n,showFreePrice:r,isPaid:o})=>{if(!t)return null;const i=()=>n(t),a=o||Wp(r),l=c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),i())};return s.jsx(Yl,{role:"listitem",onClick:i,onKeyDown:l,tabIndex:0,"data-auto":`event-card-${t.slug}`,"data-event-id":e,"aria-label":`Select ${t.title}, ${t.lengthInMinutes} minutes${a?`, ${t.displayPrice}`:""}`,children:s.jsxs(c2,{children:[s.jsxs(u2,{children:[s.jsx(ff,{"data-auto":"event-card-title",children:t.title}),!!t.description&&s.jsx(ck,{"data-auto":"event-card-description",children:t.description}),s.jsx(uk,{"data-auto":"event-card-duration",children:fk(ii.durationMinutes,{duration:t.lengthInMinutes.toString()})})]}),a&&s.jsx(d2,{"data-auto":"event-card-price",children:t.displayPrice})]})})},L1=()=>s.jsx(lk,{"data-auto":"event-card-skeleton",children:s.jsxs(c2,{children:[s.jsxs(u2,{children:[s.jsx(mk,{}),s.jsx(vk,{}),s.jsx(xk,{})]}),s.jsx(gk,{})]})}),hk=Wc` 50% { opacity: .5; } `,eu=O.div` background: ${({theme:e})=>e.bookerPrimaryColor}; animation: ${hk} 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; border-radius: 6px; `,mk=O(eu)` height: 20px; width: 70%; `,gk=O(eu)` height: 20px; width: 50px; flex-shrink: 0; align-self: flex-start; `,vk=O(eu)` height: 16px; width: 90%; `,xk=O(eu)` height: 16px; width: 60px; `,bk=({ariaLabel:e,dataAuto:t,className:n})=>s.jsxs(Xp,{"aria-label":e,"data-auto":t,className:n,children:[s.jsx(L1,{}),s.jsx(L1,{})]}),yk=()=>{const e=Lt(),[,t]=b.useContext(qt),{calEventsMap:n,shouldFetchEvents:r,isLoading:o}=J6(),{events:i,groupedAppointmentInfo:a,showFreePrice:l}=e,c=o&&r,u=(a==null?void 0:a.title)||"Available services",f=b.useCallback(p=>{o||(t.setIsLoading(!0),t.setEventSlug(p.slug),t.setEventSelection(p),t.resetEditorStep())},[o,t]);return s.jsx(h2,{className:"booking-select-events-step",children:s.jsxs(f2,{children:[(a==null?void 0:a.isTitleVisible)&&a.title&&s.jsx(p2,{"data-auto":"booking-select-events-step-grouped-events-title",children:s.jsx(V6,{children:a.title})}),c?s.jsx(bk,{ariaLabel:u,dataAuto:"booking-select-events-step-events-list-skeleton",className:"defaultList"}):s.jsx(Xp,{"aria-label":u,className:"defaultList","data-auto":"booking-select-events-step-events-list",children:i.map(p=>s.jsx(pk,{calEventData:n.get(p.identifier),identifier:p.identifier,onSelect:f,isPaid:Hp(p),showFreePrice:l},p.identifier))})]})})},{str:Ck}=fe;function wk(){var C;const e=Lt(),[t,n]=b.useContext(qt),{title:r,isTitleVisible:o}=e.serviceProviderStage,{events:i,showFreePrice:a}=e,l=()=>{n.setEventSelection(null),n.setEventSlug(null),n.resetEditorStep()},c=((C=t==null?void 0:t.eventSelection)==null?void 0:C.hosts)||[];if(c.length===0||!(t!=null&&t.eventSelection))return null;const u=t.eventSelection,f=_=>{n.setSelectedHostId(_),n.resetEditorStep()},p=i.length>1,d=i.find(_=>_.calEventId===u.id),y=!!d&&Hp(d)||Wp(a);return s.jsxs(h2,{"data-auto":"staff-member-selection-step",children:[s.jsxs(f2,{children:[s.jsx(p2,{"data-auto":"staff-member-selection-step-grouped-events-title",children:s.jsx(V6,{children:o&&r})}),s.jsx(d2,{"data-auto":"staff-member-selection-step-event-subtitle",children:y?`${u.title} | ${u.displayPrice}`:u.title}),s.jsxs(Sk,{children:[s.jsx(Yl,{"data-auto":"anyone-available-staff-member-selection-step-item",onClick:()=>f(-1),children:s.jsx(ff,{children:Ck("ui.runtimessr.staffMemberSelection.anyoneAvailable")})}),c.map(_=>s.jsx(Yl,{"data-auto":"staff-member-selection-step-item",onClick:()=>f(_.userId),children:s.jsx(ff,{children:_.name})},"event-host-"+_.username))]})]}),p&&s.jsx(_k,{children:s.jsx(K6,{onClick:l})})]})}const Sk=O(Xp)` margin-block-end: 24px; `,_k=O.div` position: sticky; bottom: 0; background-color: ${({theme:e})=>e.bookerBackgroundColor}; width: 100%; padding-block-end: 24px; margin-block-start: auto; `,Ok={[Jn.STAFF_MEMBER_SELECTION]:wk,[Jn.EVENT_SELECTION]:yk,[Jn.BOOKER]:ok};function kk({events:e,serviceProviderStage:t}){var C,_,x,m;const[n,r]=b.useContext(qt),{calEventsMap:o}=J6(),i=$e.isEditor?n.widgetEditorStep:null,a=((_=(C=n.eventSelection)==null?void 0:C.schedulingType)==null?void 0:_.toLowerCase())==="collective";b.useEffect(()=>{if($e.isEditor&&i===Jn.STAFF_MEMBER_SELECTION&&e&&e.length>=1){const v=Array.from(o.values()).find(w=>w.hosts.length>1);v&&r.setEventSelection(v)}},[i,e]),b.useEffect(()=>{if(o.size===1&&!n.eventSelection){const v=Array.from(o.values())[0];r.setEventSelection(v)}},[o]);const l=e&&e.length>1,c=n.eventSlug,u=l&&!c,f=n.eventSelection&&n.eventSelection.hosts.length>1,p=((m=(x=n.eventSelection)==null?void 0:x.seats)==null?void 0:m.disabled)===!1,d=t.isStageShown&&f&&!n.selectedHostId&&!p&&!a,g=u?Jn.EVENT_SELECTION:d?Jn.STAFF_MEMBER_SELECTION:Jn.BOOKER,y=Ok[i||g];return s.jsx(y,{})}const R1="background-color",Ek="color",Mk={bookerPrimaryColor:"#272b35",bookerSecondaryColor:"#EDEFF1",bookerBackgroundColor:"#ffffff"},jk={bookerPrimaryColor:"var(--color_1)",bookerSecondaryColor:"var(--color_4)",bookerBackgroundColor:"var(--color_3)"},Tk=(e,t)=>{const n=b.useMemo(()=>{var d,g,y;const o=(d=e==null?void 0:e.bookerPrimaryColor)==null?void 0:d.common,i=(g=e==null?void 0:e.bookerSecondaryColor)==null?void 0:g.common,a=(y=e==null?void 0:e.bookerBackgroundColor)==null?void 0:y.common;let l=o==null?void 0:o[Ek],c=i==null?void 0:i[R1],u=a==null?void 0:a[R1];const p=t===pi.BASIC?Mk:jk;return l||(l=p.bookerPrimaryColor),c||(c=p.bookerSecondaryColor),u||(u=p.bookerBackgroundColor),{bookerPrimaryColor:l,bookerSecondaryColor:c,bookerBackgroundColor:u,bookerStyles:e??{}}},[e,t]),r=b.useCallback(({styleKey:o})=>{var a;const i=(a=n.bookerStyles)==null?void 0:a[o];return i?Kt(i,!1,!0):""},[n]);return{...n,evaluateStyles:r}},$1={SLUG:"slug",ACTION:"action",TEAM_ID:"teamId",BOOKING_UID:"bookingUid",USERNAME:"username",SELECTED_HOST_ID:"selectedHostId",RESCHEDULE:"reschedule",CANCEL:"cancel",ALL_REMAINING_BOOKINGS:"allRemainingBookings"};let Qt=null;(function(){typeof window>"u"||Ak()})();function Ak(){const e=new URL(Ie().location.href),t=new URLSearchParams(e.search);if(t.get($1.ACTION)){Qt=Object.fromEntries(t.entries());const r=Ie().document.querySelector('[data-widget-type="ssrcalbooking"]');r&&r.scrollIntoView(),setTimeout(()=>{Object.values($1).forEach(o=>e.searchParams.delete(o)),history.replaceState(null,"",e)},0)}}function Nk(e){if(e||$e.isServer||!Qt)return{slug:void 0,action:void 0,teamId:void 0,bookingUid:void 0,username:void 0,isUrlAction:!1,selectedHostId:void 0};const t={slug:Qt.slug,action:Qt.action,bookingUid:Qt.bookingUid,username:Qt.username,teamId:parseInt(Qt.teamId),isUrlAction:[ba.RESCHEDULE,ba.CANCEL].includes(Qt.action),selectedHostId:Qt.selectedHostId?parseInt(Qt.selectedHostId):void 0};return Qt=null,t}const Ik=e=>{const[{slug:t,action:n,teamId:r,username:o,bookingUid:i,isUrlAction:a,selectedHostId:l}]=b.useState(()=>Nk(e.isBookingDryRun));b.useEffect(()=>{i&&(a&&(e.setEventSlug(t||e.eventSlug),e.setTeamId(r||e.teamId),e.setUserName(o||e.userName),l&&e.setSelectedHostId(l)),n===ba.RESCHEDULE&&e.setRescheduleUid(i),n===ba.CANCEL&&e.setCancelBookingId(i))},[])},Pk=e=>{var S;const{clientId:t,featureMetadata:n,widgetId:r,organizationId:o,eventIdentifier:i,events:a,designStyle:l,groupedAppointmentInfo:c,serviceProviderStage:u,_styles:f,bookingSource:p}=e,[d,g]=h8(e),y=Pw(),C=u8(y,e.featureMetadata);Ik({...e,isBookingDryRun:C,setRescheduleUid:g.setRescheduleUid,setCancelBookingId:g.setCancelBookingId,setEventSlug:g.setEventSlug,setTeamId:g.setTeamId,setUserName:g.setUserName,setSelectedHostId:g.setSelectedHostId});const _=(((S=e.events)==null?void 0:S.length)??0)>=1||!!d.eventSlug,x=l||pi.SITE_THEME,m=b.useMemo(()=>{var E;return((E=a==null?void 0:a.find)==null?void 0:E.call(a,j=>j.slug===d.eventSlug))||null},[a,d.eventSlug]),v=Tk(f,x),w={...n,eventSlug:d.eventSlug,teamId:d.teamId,userName:d.userName,rescheduleUid:d.rescheduleUid,cancelBookingId:d.cancelBookingId,widgetId:r,designStyle:x,language:d.language,apiUrl:d.apiUrl,clientId:t,organizationId:o,currentEvent:m,eventIdentifier:i,isBookingActive:_,isBookingDryRun:C,events:a||[],groupedAppointmentInfo:c,serviceProviderStage:u,showFreePrice:e.showFreePrice??!0,styles:f,bookingSource:p};return!_&&!y.isInPreviewOrEditor()?(Fl("Trying to render RuntimeCalBooking when booking is not active in non-editor mode",{additionalInfoToLog:w,isInPreviewOrEditor:y.isInPreviewOrEditor()}),null):s.jsx(m8,{...w,state:d,actions:g,children:s.jsxs(_C,{theme:v,children:[s.jsxs(U6,{"data-auto":"ssr-cal-booking-widget",className:`booking-wrapper ${x}`,children:[s.jsx(rO,{widgetId:r}),s.jsx(kk,{...e}),s.jsx(K8,{}),s.jsx(L8,{})]}),s.jsx(DO,{})]})})},Lk=_t({Comp:Pk,logProps:!0,componentName:"CalBooking",additionalInfoToLog:{tag:"booking"}}),Rk=O.span` display: grid; width: 16px; ${({styles:e={}})=>ri(e)} svg { fill: currentColor; } `;function $k({className:e,dataAuto:t,svgMarkup:n,styles:r,onClick:o}){return s.jsx(Rk,{onClick:o,className:e,"data-auto":t,styles:r,dangerouslySetInnerHTML:{__html:n||Dk()}})}function Dk(){return` `}const Bk=({svgMarkup:e,_styles:t})=>{var a,l;const{isInEditor:n}=Sc(),r=LS(),o=()=>{var c;!n&&((c=window._ecomm)==null||c.openCart())},i=b.useMemo(()=>zp(t),[t]);return s.jsxs(zk,{"data-auto":"ssr-cart-widget",children:[s.jsx($k,{className:"cart-icon",dataAuto:"cart-icon",svgMarkup:e,styles:((a=i.rules)==null?void 0:a.cartIcon)||{},onClick:o}),s.jsx(Fk,{styles:(l=i.rules)==null?void 0:l.itemsCountLabel,className:"cart-count-label","data-auto":"cart-count-label",onClick:o,children:(n||r>0)&&r})]})},zk=O.div` display: flex; align-items: center; justify-content: center; .cart-icon, .cart-count-label { cursor: pointer; user-select: none; } label.cart-count-label { margin-inline: 5px; } `,Fk=O.label` ${e=>ri(e.styles)} `,Uk=_t({Comp:Bk,logProps:!0,componentName:"Cart",additionalInfoToLog:{tag:"native-ecom"}});function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},pf(e,t)}function Hk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pf(e,t)}const D1={disabled:!1},m2=Ce.createContext(null);var Wk=function(t){return t.scrollTop},Ii="unmounted",Tr="exited",Ar="entering",po="entered",hf="exiting",Un=function(e){Hk(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?l?(c=Tr,i.appearStatus=Ar):c=po:r.unmountOnExit||r.mountOnEnter?c=Ii:c=Tr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ii?{status:Tr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Ar&&a!==po&&(i=Ar):(a===Ar||a===po)&&(i=hf)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:gs.findDOMNode(this);a&&Wk(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Tr&&this.setState({status:Ii})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[gs.findDOMNode(this),l],u=c[0],f=c[1],p=this.getTimeouts(),d=l?p.appear:p.enter;if(!o&&!a||D1.disabled){this.safeSetState({status:po},function(){i.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Ar},function(){i.props.onEntering(u,f),i.onTransitionEnd(d,function(){i.safeSetState({status:po},function(){i.props.onEntered(u,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:gs.findDOMNode(this);if(!i||D1.disabled){this.safeSetState({status:Tr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:hf},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Tr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:gs.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],f=c[1];this.props.addEndListener(u,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Ii)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Ga(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ce.createElement(m2.Provider,{value:null},typeof a=="function"?a(o,l):Ce.cloneElement(Ce.Children.only(a),l))},t}(Ce.Component);Un.contextType=m2;Un.propTypes={};function co(){}Un.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:co,onEntering:co,onEntered:co,onExit:co,onExiting:co,onExited:co};Un.UNMOUNTED=Ii;Un.EXITED=Tr;Un.ENTERING=Ar;Un.ENTERED=po;Un.EXITING=hf;const Vk=()=>s.jsx("svg",{width:"100%",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.625 10.4375C2.625 6.12277 6.12277 2.625 10.4375 2.625C14.7522 2.625 18.25 6.12277 18.25 10.4375C18.25 14.7522 14.7522 18.25 10.4375 18.25C6.12277 18.25 2.625 14.7522 2.625 10.4375ZM10.4375 0.75C5.08724 0.75 0.75 5.08724 0.75 10.4375C0.75 15.7878 5.08724 20.125 10.4375 20.125C12.775 20.125 14.9192 19.2971 16.5927 17.9186L23.5246 24.8504C23.8907 25.2165 24.4843 25.2165 24.8504 24.8504C25.2165 24.4843 25.2165 23.8907 24.8504 23.5246L17.9186 16.5927C19.2971 14.9192 20.125 12.775 20.125 10.4375C20.125 5.08724 15.7878 0.75 10.4375 0.75Z",fill:"currentColor"})}),g2=({styles:e,dataAuto:t="search-icon",openSearchPopup:n})=>s.jsx(oi,{"data-auto":t,styles:[Gk,e==null?void 0:e.iconBtn],onClick:n,"aria-label":"search","data-grab":"collection-search-widget-icon-btn",children:s.jsx(Vk,{})}),Gk={[h.COMMON]:{display:"inline-block",color:"inherit",width:26}},v2=2,Kk=({styles:e})=>s.jsx(M,{styles:Yk,children:s.jsx(g2,{styles:e,dataAuto:"",openSearchPopup:()=>{}})}),Yk={[h.COMMON]:{display:"none"}};var ql=(e=>(e.ROUND="round",e.SQUARE="square",e))(ql||{});let mf;const qk=async()=>{var e,t,n;mf=await((n=(t=(e=Ie())==null?void 0:e.dmAPI)==null?void 0:t.loadCollectionsAPI)==null?void 0:n.call(t))},Xl=async()=>(mf||await qk(),mf),Xk=({collectionsToSearch:e})=>{const[t,n]=b.useState(""),[r,o]=b.useState(!1),[i,a]=b.useState(!1),[l,c]=b.useState(()=>Yu(e)),u=b.useCallback(Vc(async y=>{try{const C=await Xl();if(y.lengthC.storeData(x).pageSize(50).search(y).get()));c(x=>x.map((m,v)=>{var S,E;const w=(S=_[v])==null?void 0:S.values;return{...m,items:w||[],page:((E=_[v])==null?void 0:E.page)||{}}}))}catch{Ne.warn({message:"Error in collection search widget on search",tags:["__new-runtime__"]})}a(!1)},500),[]);return{inputValue:t,isDropdownOpen:r,isLoading:i,collections:l,onInputChange:y=>{const C=y.target.value;n(C),a(!0),u(C.trim())},onInputFocus:()=>{o(!0)},clearSearchState:()=>{n(""),c(Yu(e))},fetchMore:async y=>{var _;const C=(_=l.find(x=>x.name===y))==null?void 0:_.page;if(!(i||!C||C.pageNumber+1===C.totalPages)){a(!0);try{const x=await Xl();if(!x){a(!1);return}const m=await x.storeData(y).pageSize(50).pageNumber(C.pageNumber+1).search(t).get();c(v=>v.map(w=>{if(w.name!==y)return w;const S=m==null?void 0:m.values;return{...w,items:[...w.items,...S],page:m==null?void 0:m.page}}))}catch{Ne.warn({message:"Error in collection search widget on fetch more",tags:["__new-runtime__"]})}a(!1),Ne.info(`Fetch more items in the collection search widget, page ${C.pageNumber+1}`)}}}},Yu=e=>e.map(({name:t,path:n})=>({name:t,path:n,items:[],page:{pageNumber:0,totalPages:0}})),Zk=O.a(e=>Kt(e.styles,!0)),Qk=({grabId:e,domAttrs:t,...n})=>s.jsx(Zk,{"data-auto":e,"data-grab":e,...t,...n}),x2=({href:e="",styles:t,grabId:n,item:r})=>s.jsxs(Qk,{styles:[eE,t==null?void 0:t.dropdownItem,Be(Jk,{innerSelector:":not(:first-child)"}),Be(ae([tE,t==null?void 0:t.dropdownItemHover]),{pseudoSelector:"hover"})],domAttrs:{href:e,onClick:o=>{$e.isEditor&&o.preventDefault()}},grabId:n,children:[s.jsx(ma,{styles:nE,src:r.data.image,alt:""}),s.jsx(rt,{styles:rE,children:r.data.name}),s.jsx(rt,{children:r.data.displayed_price})]}),Jk={[h.COMMON]:{borderTop:"1px solid #E2E2E2"}},eE={[h.COMMON]:{display:"flex",alignItems:"center",gap:16,textDecoration:"none",color:"inherit",padding:"8px 40px"},[h.MOBILE]:{padding:"8px 20px"}},tE={[h.COMMON]:{background:"#F4F4F4"}},nE={[h.COMMON]:{width:48,height:48,objectFit:"cover",borderRadius:3}},rE={[h.COMMON]:{flexGrow:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},oE=({styles:e})=>s.jsx(M,{styles:iE,children:s.jsx(x2,{item:{data:{identifier:"",name:"",image:"",displayed_price:""},page_item_url:""},styles:e,grabId:"collection-search-widget-dropdown-item"})}),iE={[h.COMMON]:{display:"none"}},b2=()=>{const e=b.useRef(null),[t,n]=b.useState(!1);return b.useEffect(()=>{const r=Ie();if(e.current&&r){const o=new r.IntersectionObserver(([i])=>{n(i.isIntersecting)});return o.observe(e.current),()=>o.disconnect()}},[e.current]),{elementRef:e,isVisible:t}},aE=()=>{var r;const e=Ie(),t=sE(),n=(r=e==null?void 0:e.Parameters)==null?void 0:r.SiteAlias;return b.useCallback(({collectionPath:o,itemUrl:i})=>{var l;const a=lE(`${o}/${i}`);return t?`/${a}`:`/site/${n}/${a}${(l=document==null?void 0:document.location)==null?void 0:l.search}`},[t,n])};function sE(){var e,t,n;return((n=(t=(e=Ie())==null?void 0:e.dmAPI)==null?void 0:t.getCurrentEnvironment)==null?void 0:n.call(t))==="live"}const lE=e=>{var o,i;const t=Ie(),n=(o=t==null?void 0:t.Parameters)==null?void 0:o.defaultLang,r=((i=t==null?void 0:t.Parameters)==null?void 0:i.IsSiteMultilingual)&&(t==null?void 0:t.dmAPI.getSiteCurrentLocale());return r&&n&&r!==n?`${r}/${e}`:e},cE=({collection:e,styles:t,fetchMore:n})=>{const{isVisible:r,elementRef:o}=b2(),i=aE();return b.useEffect(()=>{r&&n()},[r]),e.items?s.jsxs(M,{"data-auto":"search-items-group",children:[e.items.map(a=>s.jsx(x2,{href:i({collectionPath:e.path,itemUrl:a.page_item_url}),styles:t,item:a,grabId:"collection-search-visible-dropdown-item"},a.data.identifier)),s.jsx("div",{"data-auto":"end-of-items-container",ref:o})]}):null},y2=({collections:e,styles:t,isResultsShown:n,isLoading:r,fetchMore:o})=>{const i=e.reduce((a,l)=>a+l.items.length,0);return s.jsxs(M,{styles:[uE,t==null?void 0:t.dropdown],"data-grab":"collection-search-widget-dropdown",children:[n&&s.jsxs(s.Fragment,{children:[i>0&&e.map(a=>s.jsx(cE,{collection:a,styles:t,fetchMore:()=>{o(a.name)}},a.name)),i===0&&!r&&s.jsx(M,{styles:dE,children:fe.str("ui.runtimessr.collectionSearch.noResults")})]}),s.jsx(oE,{styles:t})]})},uE={[h.COMMON]:{textAlign:"left",overflowY:"auto",maxHeight:"1000px"}},dE={[h.COMMON]:{color:"#a1a1a1",padding:"30px 40px"},[h.MOBILE]:{padding:20}},fE=()=>s.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1629 2.16291C17.529 1.7968 17.529 1.2032 17.1629 0.837087C16.7968 0.470971 16.2032 0.470971 15.8371 0.837087L9 7.67417L2.16291 0.837087C1.7968 0.470971 1.2032 0.470971 0.837087 0.837087C0.470971 1.2032 0.470971 1.7968 0.837087 2.16291L7.67417 9L0.837087 15.8371C0.470971 16.2032 0.470971 16.7968 0.837087 17.1629C1.2032 17.529 1.7968 17.529 2.16291 17.1629L9 10.3258L15.8371 17.1629C16.2032 17.529 16.7968 17.529 17.1629 17.1629C17.529 16.7968 17.529 16.2032 17.1629 15.8371L10.3258 9L17.1629 2.16291Z",fill:"currentColor"})}),C2=({inputRef:e,value:t,placeholder:n,styles:r,onChange:o,onFocus:i,onClose:a})=>{const[l,c]=b.useState(!1);return s.jsxs(M,{styles:ae([pE,r==null?void 0:r.inputWrapper]),onKeyDown:u=>{u.key==="Tab"&&c(!0)},onMouseDown:()=>c(!1),children:[s.jsx(fi,{ref:e,styles:[hE,l?{}:mE,r==null?void 0:r.input,Be(ae(r==null?void 0:r.inputFocus),{pseudoSelector:"focus"})],"data-grab":"collection-search-widget-input",value:t,placeholder:n,onChange:o,onFocus:i,increaseSpecificity:!0,role:"search","aria-label":"search products","data-auto":"collection-search-input"}),s.jsx(oi,{styles:ae([gE,r==null?void 0:r.closeBtn]),onClick:a,"data-auto":"search-popup-close-btn",children:s.jsx(fE,{})})]})},pE={[h.COMMON]:{display:"flex",alignItems:"center",padding:40},[h.MOBILE]:{padding:20}},hE={[h.COMMON]:{display:"block",width:"100%",padding:"5px"}},mE={[h.COMMON]:{outline:"none"}},gE={[h.COMMON]:{width:"18px",height:"18px",flexShrink:0,display:"flex",color:"#313131",marginInlineStart:"15px"}},vE=({inputRef:e,styles:t,placeholder:n,inputValue:r,onInputChange:o,onInputFocus:i,onClosePopup:a,collections:l,isResultsShown:c,isLoading:u,fetchMore:f,animatedBlockRef:p,animationState:d})=>s.jsxs(M,{styles:[SE,t==null?void 0:t.popup],ref:p,style:xE[d],"data-grab":"collection-search-widget-popup",children:[s.jsx(C2,{inputRef:e,styles:{...t,input:ae([CE,t==null?void 0:t.input]),inputWrapper:yE,closeBtn:wE},value:r,placeholder:n,onChange:o,onFocus:i,onClose:a}),s.jsx(y2,{collections:l,styles:{...t,dropdownItem:Be(bE,{innerSelector:":first-child"})},isResultsShown:c,isLoading:u,fetchMore:f})]}),xE={entering:{marginTop:"56px",opacity:1},entered:{marginTop:"56px",opacity:1},exiting:{marginTop:"-200px",opacity:0},exited:{marginTop:"-200px",opacity:0,height:0,overflow:"hidden"}},bE={[h.COMMON]:{marginBlockStart:"32px"}},yE={[h.COMMON]:{padding:0,position:"relative"},[h.MOBILE]:{padding:0},[h.TABLET]:{padding:0}},CE={[h.COMMON]:{border:"none",padding:"16px",paddingInlineEnd:"48px",borderRadius:"38px",height:"56px",background:"white"}},wE={[h.COMMON]:{width:"14px",height:"14px",position:"absolute",right:"24px",top:"50%",transform:"translateY(-50%)"}},SE={[h.COMMON]:{position:"relative",background:"#F5F5F7",display:"flex",flexDirection:"column",borderRadius:"30px",padding:"8px",maxHeight:"calc(100vh - 112px)",width:"40%",transition:"all 0.2s linear",marginTop:"100px",marginInline:"auto",opacity:0},[h.TABLET]:{width:"80%"},[h.MOBILE]:{width:"90%"}},_E=({inputRef:e,styles:t,placeholder:n,inputValue:r,onInputChange:o,onInputFocus:i,onClosePopup:a,collections:l,isResultsShown:c,isLoading:u,fetchMore:f,animatedBlockRef:p,animationState:d})=>s.jsxs(M,{styles:[kE,t==null?void 0:t.popup],ref:p,style:EE[d],"data-grab":"collection-search-widget-popup",children:[s.jsx(C2,{inputRef:e,styles:{...t,inputWrapper:OE},value:r,placeholder:n,onChange:o,onFocus:i,onClose:a}),s.jsx(y2,{collections:l,styles:t,isResultsShown:c,isLoading:u,fetchMore:f})]}),OE={[h.COMMON]:{borderBottom:"1px solid #E2E2E2"}},kE={[h.COMMON]:{position:"relative",background:"#fff",display:"flex",flexDirection:"column",maxHeight:"100vh",transition:"all 0.2s linear",marginTop:"-200px",opacity:0}},EE={entering:{marginTop:0,opacity:1},entered:{marginTop:0,opacity:1},exiting:{marginTop:"-200px",opacity:0},exited:{marginTop:"-200px",opacity:0,height:0,overflow:"hidden"}},ME=({inputRef:e,widgetId:t,placeholder:n,layout:r,styles:o,collectionsToSearch:i,closeSearchPopup:a,animatedBlockRef:l,animationState:c})=>{const{inputValue:u,isDropdownOpen:f,isLoading:p,collections:d,onInputChange:g,onInputFocus:y,clearSearchState:C,fetchMore:_}=Xk({collectionsToSearch:i}),x=r||ql.ROUND,m=()=>{C(),a()},v=f&&u.length>=v2,w=ht.getBoolean("runtime.ssr.search.layout.enabled",!1);return s.jsx(hO,{children:s.jsxs(M,{styles:jE,"data-grab":`collection-search-widget-portal-${t}`,children:[s.jsx(M,{style:AE[c],styles:TE,onClick:m}),w&&x===ql.ROUND?s.jsx(vE,{inputRef:e,styles:o,placeholder:n,inputValue:u,onInputChange:g,onInputFocus:y,onClosePopup:m,collections:d,isResultsShown:v,isLoading:p,fetchMore:_,animatedBlockRef:l,animationState:c}):s.jsx(_E,{inputRef:e,styles:o,placeholder:n,inputValue:u,onInputChange:g,onInputFocus:y,onClosePopup:m,collections:d,isResultsShown:v,isLoading:p,fetchMore:_,animatedBlockRef:l,animationState:c}),s.jsx(Kk,{styles:o})]})})},jE={[h.COMMON]:{position:"fixed",top:0,left:0,right:0,zIndex:200}},TE={[h.COMMON]:{display:"none",background:"rgba(0, 0, 0, 0.4)",position:"absolute",top:0,left:0,right:0,height:"100vh"}},AE={entering:{display:"block"},entered:{display:"block"},exiting:{display:"none"},exited:{display:"none"}},NE=500,IE=({widgetId:e,placeholder:t,_styles:n,collectionsToSearch:r=[{name:"catalog_product",path:"product"}],layout:o=ql.ROUND})=>{const i=b.useRef(null),[a,l]=b.useState(!1),c=b.useRef(null),u=p=>{var d;$e.isEditor||(l(!0),(d=c==null?void 0:c.current)==null||d.focus(),p.preventDefault())},f=()=>{l(!1)};return s.jsxs("div",{children:[s.jsx(g2,{styles:n,openSearchPopup:u}),s.jsx(Un,{nodeRef:i,in:a,timeout:NE,children:p=>s.jsx(ME,{inputRef:c,widgetId:e,placeholder:t,layout:o,styles:n,collectionsToSearch:r,animatedBlockRef:i,animationState:p,closeSearchPopup:f})})]})},PE=_t({Comp:IE,componentName:"RuntimeSearch"}),LE=e=>s.jsx(PE,{...e}),w2=Ce.createContext({styles:{},openedMenuItemId:null,toggleMenuItem:()=>{}});function Xa(){return hi().styles}function hi(){return Ce.useContext(w2)}var el=(e=>(e.PRODUCT_OPTIONS="PRODUCT_OPTIONS",e.CONSTANT="CONSTANT",e.CUSTOM_FIELDS="CUSTOM_FIELDS",e))(el||{}),Ca=(e=>(e.ONE_OF="ONE_OF",e.BETWEEN="BETWEEN",e))(Ca||{}),Zl=(e=>(e.CATEGORY_ID="category_ids",e.PRICE="price",e))(Zl||{}),gf=(e=>(e.NEWEST="created_at",e.NAME="name",e.PRICE="price",e))(gf||{}),S2=(e=>(e.COLOR="COLOR",e.TEXT="TEXT",e))(S2||{});function RE(){var e;return!!((e=globalThis==null?void 0:globalThis.document)!=null&&e.querySelector('[data-element-type="dSnipcartProductGalleryId"]'))}const Zp={menuSelectors:{wrapper:null,list:"filter-sort-menu-list",divider:"filter-sort-menu-divider",closeIcon:"filter-sort-menu-closeIcon"},inputsSelectors:{slider:"range-slider-",input:"filterItem-input-icon-wrapper",inputIcon:"input-icon",inputLabel:"filterItem-input-label"},textSelectors:{displayName:"filter-sort-menu-displayName",title:"filter-sort-menu-item-title"}},vf=Zp.menuSelectors,zr=Zp.inputsSelectors,_2=Zp.textSelectors;function $E(e){var t;return((t=e.match(/^options\.choices_multi_select\[(.*)\]$/))==null?void 0:t[1])||""}function DE(e){var t;return((t=e.match(/^custom_field\[(.*)\]$/))==null?void 0:t[1])||""}function O2(e){const t=new Set;return e.filter(n=>{const r=String(n).toLowerCase();return t.has(r)?!1:(t.add(r),!0)}).sort((n,r)=>String(n).localeCompare(String(r),void 0,{numeric:!0})).reduce((n,r)=>(n[r]=r,n),{})}function k2({title:e,children:t,dataAuto:n,id:r}){const{styles:o,openedMenuItemId:i,toggleMenuItem:a}=hi(),{menuStyle:l,textStyle:c}=o;return s.jsxs(s.Fragment,{children:[s.jsx(m_,{title:e,styles:{title:c==null?void 0:c.title,headerWrapper:c==null?void 0:c.title},isAccordionOpen:i===r,onToggleOpen:()=>a(r),"data-auto":n,dataGrabs:{titleDataGrab:_2.title},children:t}),s.jsx(rt,{styles:[BE,l==null?void 0:l.divider,Be({[h.COMMON]:{display:"none"}},{innerSelector:"&:last-child"})],"data-grab":vf.divider})]})}const BE={[h.COMMON]:{width:"100%",backgroundColor:"#e1e1e1",marginBlock:"24px",display:"block",height:"2px",minHeight:"2px"}},{slider:zE}=zr,FE=5;function UE(e){const{item:t,currentValues:n,onChange:r}=e,{min:o,max:i,displayPrice:a}=t.filtersData,{sign:l,direction:c="ltr"}=VE(a),{inputsStyle:u}=Xa(),f=p=>{p.start===o&&p.end===i?r(void 0):r(p)};return s.jsx(q_,{min:o,max:i,currentValues:n,onChange:f,minRange:FE,sign:l,trackDataGrab:`${zE}${t.fieldId}`,labelsWrapperStyles:HE,labelStyles:[WE(c),u==null?void 0:u.inputLabel],trackStyles:u==null?void 0:u.slider,"data-auto":`range-slider-${t.fieldId}`})}const HE={[h.COMMON]:{fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"19px"}};function WE(e){return{[h.COMMON]:{display:"flex",flexDirection:e==="rtl"?"row":"row-reverse"}}}function VE(e){const t={},n=e.match(/[^\d.,]/);if(n===null)return t;const r=n[0],o=e.indexOf(r);if(o===0)t.direction="ltr";else if(o===e.length-1)t.direction="rtl";else return t;return t.sign=r,t}const GE=b.memo(UE),KE=({color:e,value:t,selected:n=!1,disabled:r=!1,onChange:o,size:i=32,styles:a,showLabel:l=!1})=>{const c=()=>{!r&&o&&o(t)};return s.jsxs(M,{styles:YE,onClick:c,children:[s.jsx(M,{styles:[qE,a==null?void 0:a.swatch,n&&ZE,n&&(a==null?void 0:a.swatchSelected),r&&XE,{[h.COMMON]:{width:`${i}px`,height:`${i}px`}}],"data-grab":n?"color-swatch-wrapper-selected":"color-swatch-wrapper","data-auto":"color-swatch","aria-checked":n,"aria-disabled":r,children:s.jsx(M,{styles:[QE,{[h.COMMON]:{backgroundColor:e}}],"data-grab":"color-swatch-inner"})}),l&&s.jsx(rt,{styles:JE,children:t})]})},YE={[h.COMMON]:{display:"flex",gap:"8px",cursor:"pointer"}},qE={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",outline:"none",padding:"2px",cursor:"pointer",border:"1px solid transparent"}},XE={[h.COMMON]:{cursor:"not-allowed",opacity:.5}},ZE={[h.COMMON]:{border:"1px solid #30373a"}},QE={[h.COMMON]:{width:"100%",height:"100%",boxSizing:"border-box",flexShrink:0,borderRadius:"inherit",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit",borderBottomRightRadius:"inherit",borderBottomLeftRadius:"inherit",border:"1px solid #E4E4E6"}},JE={[h.COMMON]:{fontWeight:400,fontStyle:"Regular",fontSize:"14px",lineHeight:"20px",letterSpacing:"0px"}},E2=({title:e,options:t,selectedValue:n,onChange:r,styles:o,size:i=32,showLabels:a=!1})=>{const l=b.useMemo(()=>n&&new Set(Array.isArray(n)?n.map(({value:u})=>u):[n==null?void 0:n.value]),[n]),c=u=>{const f=t.find(p=>p.value===u);f&&r(f)};return s.jsxs(M,{"data-auto":"color-swatch-group",children:[e&&s.jsx(Z,{tag:te.h5,styles:[t9,o==null?void 0:o.title],"data-grab":"colorswatchgroup-title",children:e}),s.jsx(M,{styles:[e9,o==null?void 0:o.wrapper],"data-grab":"colorswatchgroup-fields",role:"radiogroup","aria-label":e,children:t.map(u=>s.jsx(KE,{color:u.color||"#000000",value:u.value,selected:(l==null?void 0:l.has(u.value))||!1,disabled:u.disabled,onChange:c,size:i,styles:{swatch:o==null?void 0:o.swatch,swatchSelected:o==null?void 0:o.swatchSelected},showLabel:a},u.value))})]})},e9={[h.COMMON]:{display:"flex",flexDirection:"row",gap:"8px",flexWrap:"wrap"}},t9={[h.COMMON]:{textAlign:"start",marginBlockEnd:"6px",lineHeight:"100%",marginTop:"0",fontSize:"16px",direction:"inherit"}};function n9({optChoices:e,selectedFilterValues:t,onSelectValue:n}){const r=e==null?void 0:e.map(i=>({value:i.value,color:i.color||""})),o=r.filter(i=>t.has(i.value));return s.jsx(E2,{options:r,selectedValue:o,onChange:i=>{n(i.value,!t.has(i.value))},showLabels:!0,styles:{wrapper:r9,inputWrapper:o9,swatch:i9},size:24})}const r9={[h.COMMON]:{display:"flex",flexDirection:"column",gap:"16px"}},o9={[h.COMMON]:{display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"}},i9={[h.COMMON]:{borderRadius:"50%"}},a9={labelDataGrab:zr.inputLabel,iconWrapperDataGrab:zr.input,iconDataGrab:zr.inputIcon};function s9(e){const{item:t,currentValues:n,onChange:r,optionValue:o}=e,{inputsStyle:i}=Xa(),a=new Set(n||[]);function l(c,u){a[u?"add":"delete"](c),r([...a])}return(o==null?void 0:o.type)===S2.COLOR&&o.opt_choices?s.jsx(n9,{optChoices:o.opt_choices,selectedFilterValues:a,onSelectValue:l}):s.jsx(s.Fragment,{children:Object.entries(t.filtersData).map(([c,u])=>{const f=a.has(u),p=`${t.fieldId}_${c}`;return s.jsx(w_,{"data-auto":p,dataGrabs:a9,checked:f,onChange:d=>{l(u,d)},label:c,inputStyles:i==null?void 0:i.input,labelWrapperStyles:i==null?void 0:i.inputLabel,inputIconStyles:i==null?void 0:i.inputIcon,labelStyles:[l9,i==null?void 0:i.inputLabel]},p)})})}const l9={[h.COMMON]:{minHeight:"31px",overflowWrap:"anywhere"}};function c9(e){return s.jsx(k2,{title:u9(e),id:e.item.fieldId,dataAuto:`filter-item-${e.item.fieldId}`,children:e.type===Ca.BETWEEN?s.jsx(GE,{...e}):s.jsx(s9,{...e})})}function u9({type:e,currentValues:t,item:n}){if(e===Ca.ONE_OF){const r=Array.isArray(t)?t.length:0;return r>0?`${n.fieldDisplayName} (${r})`:n.fieldDisplayName}return e===Ca.BETWEEN&&t?`${n.fieldDisplayName} (1)`:n.fieldDisplayName}const{str:d9}=fe,f9=(e,t=0)=>d9(`ui.runtimessr.filtersort.${e?"less-filters":"more-filters"}`,{count:t.toString()}),p9=({isExpanded:e,count:t,onClick:n})=>{const{styles:r}=hi(),{textStyle:o}=r;return s.jsx(oi,{"data-auto":"",styles:h9,onClick:n,"aria-label":"search","data-grab":"collection-search-widget-icon-btn",children:s.jsx(Z,{styles:[m9,o==null?void 0:o.title],tag:te.h4,children:f9(e,t)})})},h9={[h.COMMON]:{width:"fit-content"}},m9={[h.COMMON]:{textDecoration:"underline",textTransform:"uppercase",margin:0}},qu=4;function g9({values:e,currentSelection:t,onChange:n,optionsMap:r}){const{inDesignMode:o,hasProducts:i,currentPageType:a}=hi(),[l,c]=b.useState(!1),u=b.useMemo(()=>e.filter(g=>g.disabled&&!o?!1:!v9({filterField:g,hasProducts:i,currentPageType:a})),[e,o,i,a]),f=b.useMemo(()=>l?u:u.slice(0,qu),[l,u]),p=u.length>qu,d=u.length-qu;return s.jsxs(s.Fragment,{children:[f.map(g=>{var m;const y=g.fieldId,C=g.filterType||Ca.ONE_OF,_=((m=t[y])==null?void 0:m.selectedValues)||void 0,x=r.get(g.fieldDisplayName.toLowerCase());return s.jsx(c9,{item:g,type:C,currentValues:_,onChange:v=>{n({...g,filterType:C,selectedValues:v})},optionValue:x},y)}),p&&s.jsx(p9,{isExpanded:l,count:d,onClick:()=>c(!l)})]})}function v9({filterField:e,hasProducts:t,currentPageType:n}){const r=e.fieldId;if(r===Zl.CATEGORY_ID)return n==="STORE_CATEGORY_PAGE"||Object.keys(e.filtersData).length===0;if(r===Zl.PRICE)return!t}const x9={labelDataGrab:zr.inputLabel,outerCircleDataGrab:zr.input,innerCircleDataGrab:zr.inputIcon},b9=[gf.NEWEST,gf.PRICE];function y9({name:e,values:t,currentSelection:n,onChange:r}){const{inDesignMode:o,isPremiumWidget:i}=hi(),{inputsStyle:a}=Xa();return s.jsx(k2,{title:e,dataAuto:"menu-item-sort",id:"item-sort",children:t.map(l=>{if(!i&&b9.includes(l.fieldId)||l.disabled&&!o)return null;const c=`${l.fieldId}_${l.sortDirection}`,u=`${n.fieldId}_${n.sortDirection}`;return s.jsx(Fp,{value:c,selectedValue:u,label:l.fieldDisplayName,onChange:()=>r(l),labelWrapperStyles:[C9,a==null?void 0:a.inputLabel],labelStyles:a==null?void 0:a.inputLabel,inputStyles:a==null?void 0:a.input,inputIconStyles:a==null?void 0:a.inputIcon,"data-auto":c,dataGrabs:x9},c)})})}const C9={[h.COMMON]:{minHeight:"31px"}},w9=b.memo(y9),S9="options.choices_multi_select",_9="internal-usage__store_catalog__catalog_product",M2=(e,t,n)=>{if(!t)return n;const r=e.key[t];return r!=null?String(r):n},O9=(e,t,n,r)=>{if(!n)return{};const o=M2(e,n,t);return r?{displayName:o,bucket:e}:{displayName:o,buckets:{}}},j2=({buckets:e,groupByKeys:t,displayNameKey:n})=>{if(t.length===0)return e[0]||{};const r={},o=t.length===1;for(const i of e){let a=r;for(let l=0;lj2({buckets:e,groupByKeys:["options.id",S9],displayNameKey:"options.name"}),E9=e=>j2({buckets:e,groupByKeys:["categories.category_id"],displayNameKey:"categories.name"}),M9=e=>e[0],j9=e=>e.aggregations.reduce((t,n)=>{switch(n.id){case"options":t[n.id]=k9(n.buckets);break;case"category":t[n.id]=E9(n.buckets);break;case"priceRange":t[n.id]=M9(n.buckets);break}return t},{}),T9=()=>({id:"options",groupBy:["options.id","options.name","options.choices_multi_select"],unwind:["options","options.choices_multi_select"],metrics:[{id:"count",type:"COUNT"}]}),A9=()=>({name:encodeURIComponent(_9),aggregations:[T9()]}),N9=async e=>{const t=await e.storeData("catalog_custom_fields").where("type","eq","PLAIN_TEXT").get();return(t==null?void 0:t.results)??[]},I9=(e,t)=>{var o;const n=$E(e.fieldId),r=(o=t.options)==null?void 0:o[n];return r?{...e,fieldDisplayName:r.displayName??e.fieldDisplayName,filtersData:r.buckets?O2(Object.keys(r.buckets)):e.filtersData}:null},P9=(e,t)=>{var o;const n=DE(e.fieldId),r=t.get(n);return(o=r==null?void 0:r.values)!=null&&o.length?{...e,fieldDisplayName:r.name??e.fieldDisplayName,filtersData:O2(r.values)}:null},L9=async e=>{try{const t=await Xl();if(!t)return e;t.enableAggregatePreview();const n=A9(),r=await t.executeAggregation(n),o=j9(r),a=e.some(c=>c.source===el.CUSTOM_FIELDS)?await N9(t):[],l=new Map(a.map(c=>[c.id,c]));return e.map(c=>c.source===el.PRODUCT_OPTIONS?I9(c,o):c.source===el.CUSTOM_FIELDS?P9(c,l):c).filter(c=>c!==null)}catch(t){return Ne.warn({message:"Error in filterable fields with facets",tags:["__new-runtime__"],error:t}),e}},R9=e=>{const[t,n]=b.useState(!0),[r,o]=b.useState([]),i=Qc(),{isInPreviewOrEditor:a}=Fn();return b.useEffect(()=>{const l=["filterable-fields",e],c=i.get(l);if(c){o(c),n(!1);return}L9(e).then(u=>{a()||i.set(l,u),o(u),n(!1)})},[e]),{fields:r,isLoading:t}},T2="catalog_option",$9=async()=>{const e=await Xl();return e?(await e.storeData(T2).get()).results:null},D9=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(new Map),o=Qc(),{isInPreviewOrEditor:i}=Fn();return b.useEffect(()=>{const l=[T2],c=o.get(l);if(c){r(c),t(!1);return}t(!0),$9().then(u=>{const f=new Map;u==null||u.forEach(p=>{f.set(p.name.toLowerCase(),p)}),i()||o.set(l,f),r(f),t(!1)})},[]),{optionsMap:n,isLoading:e,getOptionsByName:l=>n.get(l.toLowerCase())}},{str:B1}=fe;function B9({props:e,filterSortLogic:t}){const{menuStyle:n,textStyle:r}=Xa(),{inDesignMode:o,isPremiumWidget:i}=hi(),{sortableFields:a,filterableFields:l,buttonText:c,isFilterSectionHidden:u,styleWrapperSelector:f,setIsMenuOpen:p}=e,{currentSelection:d,onChangeFilter:g,showSortSection:y,onChangeSort:C,clearCollectionValues:_,selectedCount:x}=t,{fields:m,isLoading:v}=R9(l),{optionsMap:w}=D9();if(v)return null;const S=i&&(!u||o),E=y||o;return s.jsx(G6,{children:s.jsxs(M,{styles:[z9,n==null?void 0:n.wrapper],"data-auto":"filter-sort-floating-menu","data-grab":f,children:[s.jsxs(Z,{tag:te.h3,"data-grab":_2.displayName,styles:[F9,r==null?void 0:r.displayName],children:[s.jsx(rt,{styles:U9,children:c}),s.jsx(b1,{styles:[W9,n==null?void 0:n.closeIcon],dataGrab:vf.closeIcon,onClick:()=>p(!1)})]}),x>0&&s.jsxs(Z,{tag:te.h4,styles:[H9,r==null?void 0:r.title],domAttrs:{onClick:_},"data-auto":"clear-filters",children:[s.jsx(rt,{children:B1("widget.filtersort.clear-all")}),s.jsx(b1,{size:8,styles:{[h.COMMON]:{marginInlineStart:"4px",display:"grid",alignItems:"center"}}})]}),s.jsxs(M,{className:"dmNewParagraph",styles:[V9,G9,n==null?void 0:n.list],"data-grab":vf.list,children:[E&&s.jsx(w9,{name:B1("widget.filtersort.sort-by.title"),values:a,onChange:C,currentSelection:{sortDirection:d.sortDirection||"asc",fieldId:d.sortBy||""}}),S&&s.jsx(g9,{values:m,currentSelection:d.filters,onChange:g,optionsMap:w})]})]})})}const z9={[h.COMMON]:{cursor:"auto",height:"100%",position:"fixed",right:0,top:0,bottom:0,backgroundColor:"#ffffff",color:"#000000",zIndex:999,display:"flex",flexDirection:"column",border:"1px solid #000",width:"418px",padding:"40px",maxWidth:"100%",minWidth:"300px",boxSizing:"border-box"}},F9={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlockStart:"0",marginBlockEnd:"26px",width:"100%"}},U9={[h.COMMON]:{flex:1,margin:0}},H9={[h.COMMON]:{lineHeight:"normal",textTransform:"uppercase",marginBlockStart:"calc(50px - 26px)",marginBlockEnd:"50px",display:"flex",alignItems:"center",gap:"8px",cursor:"pointer"}},W9={[h.COMMON]:{cursor:"pointer",color:"#333",display:"flex",padding:"10px",margin:"-10px",boxSizing:"border-box"}},V9={[h.COMMON]:{overflowY:"auto",height:"100%",display:"flex",flexDirection:"column",margin:0,padding:0}},G9=Be({[h.COMMON]:{width:"10px",backgroundColor:"transparent"}},{innerSelector:"&::-webkit-scrollbar"}),K9="fs-btn-wrapper";function Y9(e){var l;const{triggerStyle:t}=Xa(),{showWarning:n,onClick:r}=e,{iconName:o,showIcon:i}=(t==null?void 0:t.iconProps)||{},a=e.selectedCount?`${e.text} (${e.selectedCount})`:e.text;return s.jsxs(M,{styles:q9,onClick:r,"data-auto":K9,children:[s.jsx(Ya,{styles:{root:[X9,t==null?void 0:t.root],rootHover:t==null?void 0:t.rootHover,text:t==null?void 0:t.text,rootHoverText:t==null?void 0:t.rootHoverText,buttonTypeCSSClass:t==null?void 0:t.buttonTypeCSSClass,icon:t==null?void 0:t.icon},buttonContent:{text:a,iconClassNames:[((l=t==null?void 0:t.iconProps)==null?void 0:l.iconName)||""]},dataGrab:e.styleWrapperSelector,iconClass:i&&o,showHoverEffect:e.showButtonHoverEffect}),n&&s.jsx(c_,{size:24})]})}const q9={[h.COMMON]:{position:"relative",width:"100%",height:"100%"}},X9={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",minHeight:"32px",padding:"8px 14px",minWidth:"fit-content",textAlign:"center",margin:0}};function Z9(e){const[t,n]=b.useState(null);return b.useEffect(()=>{if(typeof window>"u")return;const{collectionsFilterService:r}=window.runtime||{};r&&n({setCollectionSort:(o,i)=>r.setCollectionSort(e,o,i),setCollectionFilter:(o,i)=>r.setCollectionFilter(e,o,i),onCollectionValueChange:r.onCollectionValueChange,clearCollectionValues:()=>r.clearCollectionValues(e)})},[]),t}function Q9(e,t){const[n,r]=b.useState({filters:{},sortBy:"",sortDirection:"asc"}),o=Z9(e);b.useEffect(()=>{async function f(){if(o)try{return await o.onCollectionValueChange(e,d=>{r(d)})}catch(d){Ne.error({message:"Failed to execute filterService.onCollectionValueChange",errorMessage:d==null?void 0:d.toString(),tags:["FilterSortMenu","updateCurrentSelection"]})}}let p=()=>{};return f().then(d=>{d&&(p=d)}),p},[o]);const i=b.useCallback(f=>{o==null||o.setCollectionFilter(f.fieldId,f)},[o]),a=b.useCallback(f=>{o==null||o.setCollectionSort(f.fieldId,f.sortDirection)},[o]),l=b.useCallback(()=>{o==null||o.clearCollectionValues()},[o]),c=b.useMemo(()=>{let f=0;const{sortBy:p,filters:d}=n,{[Zl.PRICE]:g,...y}=d;return p&&f++,g!=null&&g.selectedValues&&f++,Object.values(y).forEach(C=>{var _;C!=null&&C.selectedValues&&(f+=((_=C.selectedValues)==null?void 0:_.length)||0)}),f},[n]);if(!o)return null;const u=!t.isSortSectionHidden&&t.sortableFields.some(f=>!f.disabled);return{currentSelection:n,onChangeFilter:i,showSortSection:u,onChangeSort:a,clearCollectionValues:l,selectedCount:c}}function J9(e){const[t,n]=b.useState(!1),[r,o]=b.useState(!1),[i,a]=b.useState(null),{isInEditor:l}=Sc(),{filterableFields:c=[],sortableFields:u,collectionValue:f,isSortSectionHidden:p,hasNativeStore:d,isDesignOpen:g,isContentOpen:y}=e,C=Q9(f,{isSortSectionHidden:p,sortableFields:u}),_=b.useMemo(()=>e.isFilterSectionHidden&&e.isSortSectionHidden?!0:![...e.isFilterSectionHidden?[]:c,...e.isSortSectionHidden?[]:u].some(E=>!E.disabled),[c,u]);b.useEffect(()=>{const w=!d||!RE();o(!!l&&w),l&&t&&n(!1)},[l]);const x=()=>{$e.isEditor||n(w=>!w)},m=(t||g||y)&&C&&!_,v=b.useCallback(w=>{a(S=>S===w?null:w)},[]);return{filterSortLogic:C,onBtnClick:x,showWarning:r,setIsMenuOpen:n,shouldRenderMenu:m,openedMenuItemId:i,toggleMenuItem:v}}const eM=e=>{const{widgetId:t,isDesignOpen:n,premiumWidget:r,currentPageType:o,_styles:i={}}=e,{filterSortLogic:a,onBtnClick:l,showWarning:c,setIsMenuOpen:u,shouldRenderMenu:f,openedMenuItemId:p,toggleMenuItem:d}=J9(e),g={styles:i,inDesignMode:n,hasProducts:e.hasProducts,isPremiumWidget:r,currentPageType:o,openedMenuItemId:p,toggleMenuItem:d};return s.jsxs(w2.Provider,{value:g,children:[s.jsx(M,{styles:tM,children:s.jsx(Y9,{onClick:l,showWarning:c,selectedCount:a==null?void 0:a.selectedCount,text:e.buttonText,styleWrapperSelector:`filter-sort-trigger-${t}`,showButtonHoverEffect:e.showButtonHoverEffect})}),f&&a&&s.jsx(B9,{filterSortLogic:a,props:{...e,styleWrapperSelector:`filter-sort-menu-${t}`,setIsMenuOpen:u}})]})},tM={[h.COMMON]:{width:"100%",height:"100%",minWidth:"fit-content"}},nM=_t({Comp:eM,logProps:!0,componentName:"FilterSort",additionalInfoToLog:{tag:"native-ecom"}}),rM={[h.COMMON]:{display:"flex",flexDirection:"column",width:"100%",cursor:"auto"}},oM={[h.COMMON]:{marginBlockStart:"8px",display:"flex",flexDirection:"column",gap:"8px",width:"100%"}},iM={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"15px",backgroundColor:"#ffffff",border:"1px solid #E4E4E6",borderRadius:"12px",gap:"12px"}},aM={[h.COMMON]:{display:"flex",alignItems:"center",gap:"12px",flex:"1",minWidth:"0"}},sM={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",borderRadius:"4px",flexShrink:"0"}},lM={[h.COMMON]:{display:"flex",flexDirection:"column",gap:"4px",minWidth:"0",flex:"1"}},cM={[h.COMMON]:{fontSize:"14px",color:"rgba(45, 46, 50, 1)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"1.2",minWidth:"0",width:"100%"}},uM={[h.COMMON]:{fontSize:"12px",color:"#64696B"}},dM={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"center",padding:"0px",backgroundColor:"transparent",color:"#5D6068",border:"none",borderRadius:"4px",cursor:"pointer",transition:"color 0.2s ease",outline:"none"}},fM={[h.COMMON]:{color:"hsla(223, 3%, 59%, 1)"}},pM={[h.COMMON]:{fontSize:"12px",color:"#dc3545",marginTop:"4px"}};async function hM(){return await q6(()=>import("./filestack.esm-DWc00P3b.js"),[])}let tl;async function A2(e){return tl=(await hM()).init(e),tl.picker(),tl}async function mM(e,t){const n=tl||await A2(e);return new Promise((r,o)=>{n.picker({...t,onUploadDone:r,onFileUploadFailed:o}).open().catch(o)})}const gM=["image/*","text/*","application/*","audio/*","video/*","application/pdf","application/zip","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.template.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/vnd.ms-access"];var N2=(e=>(e.LOCAL_FILE_SYSTEM="local_file_system",e.DROPBOX="dropbox",e.GOOGLE_DRIVE="googledrive",e.GMAIL="gmail",e))(N2||{});const vM=["local_file_system","dropbox","googledrive","gmail"],xM=1024*1024*10,bM=!0,yM=new Set(["ca","da","de","en","es","fr","he","it","ja","ko","nl","no","pl","pt","sv","ru","vi","zh","tr"]);function CM(){var n;const e=(n=Ie())==null?void 0:n.dmAPI.getSiteCurrentLocale(),t=e==null?void 0:e.split("-")[0];return t&&yM.has(t)?t:"en"}function wM({apiKey:e,pickerOptions:t={},onUploadSuccess:n,onUploadError:r}){const[o,i]=b.useState(!1);b.useEffect(()=>{A2(e)},[e]);const a=b.useCallback(async()=>{if(!$e.isEditor){i(!0);try{const l={lang:CM(),maxSize:xM,accept:gM,fromSources:vM,uploadInBackground:bM,maxFiles:100,...t},u=(await mM(e,l)).filesUploaded.map(f=>({url:f.url,filename:f.filename,size:f.size,mimetype:f.mimetype,handle:f.handle,key:f.key,uploadedAt:new Date}));n(u)}catch{const c=fe.str("ui.runtimessr.fileupload.error.upload_failed")||"Upload failed";r==null||r(new Error(c))}finally{i(!1)}}},[e,t,n,r]);return{loading:o,handlePickAndStore:a}}function SM({onChange:e}){const[t,n]=b.useState([]),[r,o]=b.useState(null),i=b.useCallback((u,f)=>{e==null||e({files:u,error:f})},[e]),a=b.useCallback(u=>{n(f=>{const p=[...f,...u];return o(null),i(p,null),p})},[i]),l=b.useCallback(u=>{const f=u.message;o(f),i(t,f)},[i,t]),c=b.useCallback(u=>{n(f=>{const p=f.filter(d=>d.url!==u);return o(null),i(p,null),p})},[i]);return{uploadedFiles:t,error:r,handleUploadSuccess:a,handleUploadError:l,handleRemove:c}}const _M=O.button.attrs({type:"button"})(({styles:e,hoverStyles:t})=>[Kt(e),t&&{"&:hover":Kt(t)}]),OM=e=>{if(e===0)return"0 Bytes";const t=1024,n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return Math.round(e/Math.pow(t,r)*100)/100+" "+n[r]};wa.Error=({children:e,styles:t,...n})=>{const r=ae([pM,t]);return s.jsx(rt,{styles:r,...n,children:e})};function wa({onChange:e,apiKey:t,pickerOptions:n={},buttonText:r,buttonIcon:o=s.jsx(p_,{size:16}),styles:i,dataGrab:a,dataAuto:l="file-upload",error:c,buttonClassName:u}){const{uploadedFiles:f,error:p,handleUploadSuccess:d,handleUploadError:g,handleRemove:y}=SM({onChange:e}),{loading:C,handlePickAndStore:_}=wM({apiKey:t,pickerOptions:n,onUploadSuccess:d,onUploadError:g}),x=ae([rM,i==null?void 0:i.container]);return s.jsxs(M,{"data-auto":l,"data-grab":a,styles:x,children:[s.jsx(Ya,{buttonContent:{text:r||""},styles:(i==null?void 0:i.button)||{},iconComponent:o,isDisabled:C,dataGrab:`${l}-button`,rootDataAttributes:{onClick:_},className:u}),f.length>0&&s.jsx(M,{styles:oM,"data-auto":`${l}-file-list`,children:f.map((m,v)=>s.jsxs(M,{styles:iM,"data-auto":`${l}-file-item-${v}`,children:[s.jsxs(M,{styles:aM,children:[s.jsx(M,{styles:sM,"data-auto":`${l}-file-icon`,children:s.jsx(h_,{size:40})}),s.jsxs(M,{styles:lM,children:[s.jsx(M,{styles:cM,"data-auto":`${l}-file-name`,children:m.filename}),s.jsx(M,{styles:uM,"data-auto":`${l}-file-size`,children:OM(m.size)})]})]}),s.jsx(_M,{onClick:()=>y(m.url),styles:dM,hoverStyles:fM,"data-auto":`${l}-remove-button`,"aria-label":`Remove ${m.filename}`,children:s.jsx(f_,{size:20})})]},m.key||m.handle||m.url))}),c,p&&s.jsx(wa.Error,{children:p})]})}const z1=e=>{const t=b.useRef(null);return b.useEffect(()=>{if(t.current){const n=new Event("input",{bubbles:!0,cancelable:!0});t.current.dispatchEvent(n)}},[]),s.jsx(fi,{ref:t,styles:kM,...e})},kM={[h.COMMON]:{display:"none"}},EM=({label:e,required:t=!1,buttonText:n,showLabel:r=!0,apiKey:o,storeRegion:i,storeContainer:a,storePath:l,_styles:c,widgetId:u})=>{var x,m,v,w,S,E,j,T,z;const[f,p]=b.useState([]),d=b.useCallback($=>{p($.files)},[]),g=b.useMemo(()=>{if(!(!t||f.length))return s.jsx(wa.Error,{className:"error-message","data-error":"required","aria-live":"polite",children:fe.str("rt.advancedFormInput.requiredMessage")})},[f.length,t]),y={storeTo:{location:"S3",access:"public",region:i,container:a,path:l},maxFiles:100},C=ae([MM,c==null?void 0:c.wrapper]),_={button:{...c==null?void 0:c.uploadButton,root:ae([jM,(x=c==null?void 0:c.uploadButton)==null?void 0:x.root]),rootHover:(m=c==null?void 0:c.uploadButton)==null?void 0:m.rootHover,rootDisabled:(v=c==null?void 0:c.uploadButton)==null?void 0:v.rootDisabled,text:ae([TM,(w=c==null?void 0:c.uploadButton)==null?void 0:w.text]),rootHoverText:(S=c==null?void 0:c.uploadButton)==null?void 0:S.rootHoverText,disabledText:(E=c==null?void 0:c.uploadButton)==null?void 0:E.disabledText,icon:ae([AM,(j=c==null?void 0:c.uploadButton)==null?void 0:j.icon]),rootHoverIcon:(T=c==null?void 0:c.uploadButton)==null?void 0:T.rootHoverIcon,iconDisabled:(z=c==null?void 0:c.uploadButton)==null?void 0:z.iconDisabled}};return s.jsxs(M,{styles:C,"data-auto":`file-input-${u}`,"data-grab":"file-input-wrapper",className:"advanced-form-field",children:[s.jsx(Ka,{hidden:!r,"data-grab":"file-input-label",className:"advanced-form-label",styles:c==null?void 0:c.label,htmlFor:`file-input-${u}`,children:e}),s.jsx(wa,{buttonText:n,onChange:d,apiKey:o,error:g,pickerOptions:y,styles:_,dataGrab:"file-input-upload",dataAuto:`file-input-upload-${u}`,buttonClassName:"button_2"}),!(f!=null&&f.length)&&s.jsx(z1,{type:"file",required:t,name:u,className:"advanced-form-input"}),f.map(($,Q)=>s.jsx(z1,{type:"hidden",name:u,required:t,className:"advanced-form-input",value:encodeURIComponent($.key||""),"data-auto":`file-input-hidden-${Q}`},$.key||$.handle||$.url))]})},MM={[h.COMMON]:{display:"flex",flexDirection:"column",width:"100%"}},jM={[h.COMMON]:{width:"150px",height:"40px",borderRadius:"4px",borderWidth:"1px",paddingTop:"8px",padding:"8px 18px",backgroundColor:"var(--btn-bg-color)",borderColor:"var(--color_1);",margin:"0px",direction:"ltr",backgroundImage:"none",boxShadow:"none",textAlign:"center"}},TM={[h.COMMON]:{color:"var(--btn-text-color)",padding:"0px",fontSize:"14px",fontWeight:"normal",textDecoration:"none",fontStyle:"normal"}},AM={[h.COMMON]:{color:"var(--btn-icon-color)",display:"flex",width:"16px",height:"16px",marginInlineEnd:"8px"}},Za={bgWhite:"#ffffff",borderColor:"#ced6d9",headerColor:"#f5f5f7",iconColor:"#616C79",primaryTextColor:"#313131",secondaryTextColor:"#828894"},NM=_6("select",!0),F1=O.option` &:not(:disabled) { color: initial; } background-color: ${Za.bgWhite}; `,IM=({selectedValue:e,placeholder:t,options:n=[],onChange:r,styles:o})=>{const i=b.useRef(null),{insideEditor:a}=Fn(),[l,c]=b.useState((e==null?void 0:e.value)||"");b.useEffect(()=>{const p=i.current;if(p){const d=g=>{a()&&g.preventDefault()};return p.addEventListener("mousedown",d),()=>{p.removeEventListener("mousedown",d)}}},[]);const u=b.useCallback(({target:p})=>{const d=n.find(({value:g})=>g===p.value);d&&(c(p.value),r==null||r(d))},[]),f=[PM,o,RM,!l&&{[h.COMMON]:{color:Za.secondaryTextColor}}];return s.jsx(M,{styles:LM,className:"dropdown-component",children:s.jsxs(NM,{ref:i,required:!0,value:l,onChange:u,"data-auto":"dropdown-component","data-grab":"dropdown-component",className:"dropdown",styles:f,children:[s.jsx(F1,{value:"",disabled:!0,hidden:!0,children:t}),n.map(({value:p,label:d,disabled:g})=>s.jsx(F1,{value:p,disabled:g,"data-auto":"select-option",children:d},p))]})})},PM={[h.COMMON]:{width:"100%",height:"100%",margin:"0",display:"flex",alignItems:"center",boxSizing:"border-box",paddingInlineStart:"8px",border:`1px solid ${Za.borderColor}`,borderRadius:"3px",outline:"none",boxShadow:"none",lineHeight:"normal",appearance:"none",backgroundColor:"inherit",cursor:"pointer"}},LM={[h.COMMON]:{position:"relative",cursor:"pointer",width:"100%",height:"30px",maxHeight:"40px",border:"0px solid"}},RM={[h.COMMON]:{backgroundImage:`url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.5769 5.5L12.5 6.4375L8.5 10.5L4.5 6.4375L5.42308 5.5L8.5 8.625L11.5769 5.5Z' fill='%23828894'/%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"calc(100% - 4px) center",":dir(rtl)":{backgroundPosition:"4px"}}},$M=({title:e,dropdownPlaceholder:t,styles:n,direction:r,...o})=>{const i=b.useCallback(a=>{var l;a&&!a.dir&&(a.dir=((l=getComputedStyle(a))==null?void 0:l.direction)||"ltr")},[]);return s.jsxs(M,{styles:DM,"data-grab":"dropdown-wrapper","data-auto":"dropdown-wrapper",className:"dropdown-wrapper",dir:r,ref:i,children:[e&&s.jsx(Z,{tag:te.h5,"data-auto":"dropdown-title","data-grab":"dropdown-title",className:"dropdown-title",styles:[BM,n==null?void 0:n.title],children:e}),s.jsx(IM,{placeholder:t,styles:n==null?void 0:n.fields,...o})]})},DM={[h.COMMON]:{width:"100%",display:"flex",flexDirection:"column","*":{userSelect:"none"}}},BM={[h.COMMON]:{textAlign:"start",marginBlockEnd:"8px",lineHeight:"100%",marginTop:"0",direction:"inherit",fontSize:"16px"}},zM=({productState:e,editorEmptyMessage:t,dropdownPlaceholder:n,renderType:r,_styles:o})=>{const i=I6({stylesInput:o,monitorKey:"options.variations"}),a=Object.entries((e==null?void 0:e.dropdownOptions)||{});return a.length===0?$e.isEditor&&t?s.jsx("div",{children:t}):s.jsx("div",{}):s.jsx(M,{styles:[FM,i==null?void 0:i.wrapper],"data-auto":"options-variations","data-grab":"options-variations",className:"options-variations",children:a.map(([l,c])=>{var g,y;const u=c.every(C=>C.color!==void 0),f=UM(u?zo.COLOR:r),p=e.getSelectedField(l),d=u?`${l}: ${p==null?void 0:p.value}`:l;return s.jsx(f,{selectedValue:p,options:c,title:d,onChange:C=>{e.updateVariation(l,C.value.toString())},direction:(y=(g=i==null?void 0:i.wrapper)==null?void 0:g.common)==null?void 0:y.direction,dropdownPlaceholder:n,styles:i},`d_option_${l}`)})})},FM={[h.COMMON]:{display:"flex",flexDirection:"column",height:"fit-content",width:"100%",padding:"4px",gap:"24px",border:"0px solid"}},UM=e=>{switch(e){case zo.COLOR:return E2;case zo.RADIOBUTTON:return T_;case zo.DROPDOWN:default:return $M}},HM=_t({Comp:qa(zM),componentName:"RuntimeOptionsVariations",additionalInfoToLog:{tag:"native-ecom"}}),Xu="data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2280%22 height%3D%2280%22%3E%3Crect width%3D%2280%22 height%3D%2280%22 fill%3D%22%23e5e7eb%22%2F%3E%3C%2Fsvg%3E",Xr={is_sandbox_mode:!0,id:"order_mock_default",email:"customer@example.com",creation_date:"2026-06-01T15:59:22.436Z",invoice_number:"ECOM-1505",customer_id:"cus_mock_customer",language:"en",store_url:"https://example.com/product/glass-coffee-cup",has_taxes_included_in_prices:!1,summary:{original_subtotal_amount:null,subtotal_amount:99.96,discount_amount:22.4,shipping_amount:9.99,fees:null,net_total_amount:null,taxes:null,total_taxes:0,total_amount:87.55},billing_address:{first_name:"Alex",last_name:"Customer",full_name:"Alex Customer",address_1:"100 rue Principale",street_number:null,street_name:null,address_2:null,city:"Montréal",region:"QC",sub_locality:null,country:"CA",postal_code:"H2X 1Y4",phone:"+1 555 555 0100",name:"Alex Customer",surname:"Customer",fullname:"Alex Customer",street_and_number:"100 rue Principale",line2:null},shipping_address:{first_name:"Alex",last_name:"Customer",full_name:"Alex Customer",address_1:"100 rue Principale",street_number:null,street_name:null,address_2:"Apt 2B",city:"Montréal",region:"QC",sub_locality:null,country:"CA",postal_code:"H2X 1Y4",phone:"+1 555 555 0100",name:"Alex Customer",surname:"Customer",fullname:"Alex Customer",street_and_number:"100 rue Principale",line2:"Apt 2B"},shipping_instructions:"Please leave at the front door.",pickup:null,taxable_total:87.55,total:87.55,currency:"CAD",subtotal:99.96,shipment:null,discounts:[{id:"dis_mock_coupon",code:"COUPON",savings:22.4,name:"Mock coupon",discount_type:"DISCOUNT_CODE"}],total_discount_amount:22.4,taxes:[],total_tax_amount:0,shipping_method:{name:"Standard Shipping",cost:9.99,tax_amount:0},items:[{id:"item_tshirt",type:"PHYSICAL_PRODUCT",unique_id:"item_tshirt",product_id:"demo-tshirt",name:"Classic T-Shirt",description:null,sku:"TS-CLASSIC",unit_price:29.99,subtotal:59.98,taxes:[],taxable_total:59.98,total:59.98,quantity:2,refunded_quantity:0,dimensions:null,weight:null,total_weight:null,image_url:Xu,option_values:[{name:"Size",value:"Large"},{name:"Color",value:"Navy"}],product_customizations:[{id:"cust_tshirt_text",type:"TEXT",label:"Custom text",value:"Happy Birthday!"},{id:"cust_tshirt_engraving",type:"TEXT",label:"Engraving",value:"To Mom — with love"},{id:"cust_tshirt_addons",type:"OPTIONS",label:"Add-ons",value:["Express shipping","Gift wrap"]},{id:"cust_tshirt_design",type:"FILE",label:"Design upload",value:[{filename:"logo.png",mimetype:"image/png",size:482910,url:"https://example.com/uploads/logo.png",key:"logo-key",handle:"logo-handle",uploaded_at:"2026-06-01T15:00:00.000Z"}]},{id:"cust_tshirt_giftwrap",type:"BOOLEAN",label:"Gift wrap",value:!0}],payment_plan:null,booking:null},{id:"item_mug",type:"PHYSICAL_PRODUCT",unique_id:"item_mug",product_id:"demo-mug",name:"Coffee Mug",description:null,sku:"MUG-001",unit_price:14.99,subtotal:14.99,taxes:[],taxable_total:14.99,total:14.99,quantity:1,refunded_quantity:0,dimensions:null,weight:null,total_weight:null,image_url:Xu,option_values:[{name:"Style",value:"Glass"}],product_customizations:[],payment_plan:null,booking:null},{id:"item_tote",type:"PHYSICAL_PRODUCT",unique_id:"item_tote",product_id:"demo-tote",name:"Tote Bag",description:null,sku:"TOTE-001",unit_price:24.99,subtotal:24.99,taxes:[],taxable_total:24.99,total:24.99,quantity:1,refunded_quantity:0,dimensions:null,weight:null,total_weight:null,image_url:Xu,option_values:[{name:"Color",value:"Black"}],product_customizations:[],payment_plan:null,booking:null}],status:"PROCESSED",order_status:"OPEN",payment_status:"PAID",payment:{method:"CARD",transaction_id:"txn_mock_default",confirmed_method:{name:"CARD_VISA",icon_name:"CARD_VISA",details:"•••• •••• •••• 4242"},card_last4_digits:"4242",card_type:"VISA",express_method:null,icon_url:null,display_name:null},refunded_items_amount:0,refunded_taxes_amount:0,total_refunded_amount:0,shipping_refunded:!1,display_fulfillment_status:"UNFULFILLED",custom_fields:[{id:"cf-pickup-time",type:"DATE",zone:"SHIPPING_METHODS",label:"Preferred delivery time",value:"2026-06-17T00:00:00.000Z",includes_time:!1},{id:"cf-datetime",type:"DATE",zone:"SHIPPING_METHODS",label:"Date and time",value:"2026-06-26T19:04:00.000Z",includes_time:!0},{id:"cf-option",type:"RADIO_LIST",zone:"SHIPPING_ADDRESS",label:"Option",value:"One",includes_time:null}]};({...Xr,summary:{...Xr.summary}});({...Xr});({...Xr,items:{...Xr.items[0]}});({...Xr});const U1=2e3,Ns=15;function xf(e){return e.items.some(t=>t.booking!==null&&t.booking.id===null)}function WM(e){return!e.payment||e.payment.confirmed_method.name==="UNKNOWN"}function nl(e){const t=xf(e),n=WM(e);return e.invoice_number&&!n&&!t?!1:t||n}function VM(){const[e,t]=b.useState(()=>typeof window>"u"?{status:"loading"}:new URLSearchParams(window.location.search).get("order_id")?{status:"loading"}:{status:"empty"}),n=b.useRef(0),r=b.useRef(null),o=b.useRef(!1);return b.useEffect(()=>{if(typeof window>"u")return;const i=new URLSearchParams(window.location.search).get("order_id");if(!i){t({status:"empty"});return}o.current=!1,n.current=0;const a=f=>{o.current||n.current>=Ns||nl(f)&&(r.current=setTimeout(()=>{l()},U1))},l=async()=>{if(!o.current){if(n.current>=Ns){t(f=>f.status==="success"?{...f,isRefreshing:!1,isWaitingForBookingConfirmation:!1}:f);return}n.current+=1,t(f=>f.status==="success"?{...f,isRefreshing:!0}:f);try{const f=await window._ecomm.getOrder({order_id:i});if(o.current)return;t({status:"success",order:f,isRefreshing:!1,isWaitingForBookingConfirmation:xf(f)&&nl(f)&&n.currentf.status==="success"?{...f,isRefreshing:!1}:f),c()}}},c=()=>{o.current||n.current>=Ns||(r.current=setTimeout(()=>{l()},U1))};return(async()=>{try{if(!window._ecomm){t({status:"error"});return}if(await window._ecomm.ready,o.current)return;const f=await window._ecomm.getOrder({order_id:i});if(o.current)return;t({status:"success",order:f,isRefreshing:!1,isWaitingForBookingConfirmation:xf(f)&&nl(f)}),a(f)}catch{o.current||t({status:"error"})}})(),()=>{o.current=!0,r.current!==null&&(clearTimeout(r.current),r.current=null)}},[]),e}const H1="nativeEcommRuntime.";function W1(e,t){const n=t?Object.fromEntries(Object.entries(t).map(([r,o])=>[r,String(o)])):void 0;return fe.str(e,n)}let ho=null,Uo=!1,Is=null;const Sa=new Set;function GM(){var t,n;if(typeof window>"u")return null;const e=window._ecomm;return((n=(t=e==null?void 0:e.app)==null?void 0:t.$l10n)==null?void 0:n.phrases)??null}function V1(){Sa.forEach(e=>e())}function Qp(){return Is||(Uo?Promise.resolve():typeof window>"u"||!window._ecomm?(Uo=!0,V1(),Promise.resolve()):(Is=window._ecomm.ready.then(()=>{ho=GM(),Uo=!0,V1()}),Is))}typeof window<"u"&&Qp();function KM(e,t){let n=e;for(const r of t){if(n==null||typeof n!="object")return;n=n[r]}return n}function YM(e,t){return t?e.replace(/%?\{(\w+)\}/g,(n,r)=>t[r]!=null?String(t[r]):n):e}function qM(e,t,n){if(!t.startsWith(H1))return W1(t,n);if(e){const r=t.slice(H1.length).split("."),o=KM(e,r);if(typeof o=="string")return YM(o,n)}return W1(t,n)}function to(){const[e,t]=b.useState(ho);return b.useEffect(()=>{if(ho){e!==ho&&t(ho);return}const n=()=>t(ho);return Sa.add(n),Qp(),()=>{Sa.delete(n)}},[e]),b.useCallback((n,r)=>qM(e,n,r),[e])}function XM(){const[e,t]=b.useState(Uo);return b.useEffect(()=>{if(Uo){e||t(!0);return}const n=()=>{Uo&&t(!0)};return Sa.add(n),Qp(),()=>{Sa.delete(n)}},[e]),e}const ZM=4,W=e=>`${ZM*e}px`,F={text:"#000000",alt:"#6B7280",border:"#E5E7EB",bgAlt:"#F3F4F6",pillInfoBg:"#E0F2FE",pillInfoFg:"#075985",pillInfoBorder:"#7DD3FC",pillSuccessBg:"#DCFCE7",pillSuccessFg:"#166534",pillSuccessBorder:"#86EFAC",pillNeutralBg:"#F3F4F6",pillNeutralFg:"#374151",pillNeutralBorder:"#D1D5DB",pillErrorBg:"#FEE2E2",pillErrorFg:"#991B1B",pillErrorBorder:"#FCA5A5",pillWarningBg:"#FEF3C7",pillWarningFg:"#92400E",pillWarningBorder:"#FCD34D",noticeWarningBg:"#FEF3C7",noticeWarningFg:"#92400E",noticeWarningBorder:"#F59E0B",noticeInfoBg:"#E0F2FE",noticeInfoFg:"#075985",noticeInfoBorder:"#7DD3FC",noticeErrorBg:"#FEE2E2",noticeErrorFg:"#991B1B",noticeErrorBorder:"#EF4444"},I2=O.div` padding-block-end: ${W(10)}; position: relative; display: flex; flex-direction: column; gap: ${W(9)}; max-width: ${({$twoColumns:e})=>e?"920px":"560px"}; margin: 0 auto; color: ${F.text}; `,QM=O.div` display: flex; flex-direction: row; align-items: flex-start; gap: ${W(9)}; & > * { flex: 1 1 0; min-width: 0; } @media (max-width: 600px) { flex-direction: column; } `,tu=O.section` display: flex; flex-direction: column; `,nu=O.h2` font-size: 24px; font-weight: 600; line-height: 1; margin: 0 0 ${W(4.5)} 0; `,JM=O.div` display: flex; flex-direction: column; gap: ${W(3)}; margin-block-end: ${W(4.5)}; `,P2=O.div` display: flex; flex-direction: column; && > * { border-radius: 0; margin-block-start: -1px; } && > *:first-child { margin-block-start: 0; border-start-start-radius: 5px; border-start-end-radius: 5px; } && > *:last-child { border-end-start-radius: 5px; border-end-end-radius: 5px; } `,ej=O.div` font-size: 12px; line-height: 1.5; background-color: ${F.bgAlt}; padding: ${W(1.5)} ${W(2)}; border-radius: 6px; margin-block-start: ${W(.5)}; p { margin: 0 0 ${W(1)} 0; } p:last-child { margin-bottom: 0; } a { color: inherit; } `,tj=O.div` margin-block-end: ${W(2)}; `,nj=O.hr` border: none; border-block-end: 1px solid ${F.border}; margin: 0; block-size: 0; `,er=()=>s.jsx(nj,{"aria-hidden":"true"});function L2(e,t){try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t}).format(e)}catch{return`${e.toFixed(2)} ${t}`}}function Jp(e,t,n,r){const o=e(t,r);return!o||o===t?n:o}function rj(e,t,n){return!t||!n?null:Jp(e,`nativeEcommRuntime.countries.${t}.states.${n}`,n)}function oj(e,t){return t?Jp(e,`nativeEcommRuntime.countries.${t}.name`,t):null}function R2(e,t,n,r,o,i,a,l){let c=i;return a==="MX"&&i==="DIF"&&(c="CDMX"),[t,n,r,o!==a?o:null,rj(e,a,c),oj(e,a),l!==a?l:null].filter(Boolean).join(", ")}function $2(e,t){return t?R2(e,t.address_1,t.address_2,t.sub_locality,t.city,t.region,t.country,t.postal_code):""}function ij(e,t){return t?R2(e,t.address_1,t.address_2,null,t.city,t.region,t.country,t.postal_code):""}const aj="__separator__";function eh(e){const t={CONTACT_INFO:[],SHIPPING_ADDRESS:[],SHIPPING_METHODS:[],BILLING_ADDRESS:[],PAYMENT_METHODS:[]};for(const n of e.custom_fields)t[n.zone].push(n);return t}function _a(e){const t=[];for(const n of e)t.push({key:`custom-${n.id}`,label:n.label,value:n.value??void 0});return t}function Ql(e){return e.length===0?[]:[{key:aj,isSeparator:!0},...e]}function sj(e,t){return t.display_name?t.display_name:Jp(e,`nativeEcommRuntime.paymentMethods.${t.name}`,t.name)}function G1(e,t){return e==="title"?!1:!!(!t.hasPaymentMethod&&(t.isRefreshing||t.shouldRefresh))}function lj(e){if("creation_status"in e&&e.creation_status)return e.creation_status;if("booking_status"in e&&e.booking_status)switch(e.booking_status){case"Pending":return"PENDING";case"Failed":return"FAILED";case"Success":return"SUCCESS"}}function cj(e){const t=e?lj(e):void 0,[n,r]=b.useState(null);return b.useEffect(()=>{if(!(e!=null&&e.id)){r(null);return}let o=!1;return(async()=>{var a;try{const l=e.seat_id?`https://api.cal.com/v2/bookings/by-seat/${e.seat_id}`:`https://api.cal.com/v2/bookings/${e.id}`,c=await fetch(l,{headers:{"cal-api-version":"2026-02-25"}});if(!c.ok)return;const u=await c.json();if(o||u.error!=null)return;const f=(a=u.data.attendees[0])==null?void 0:a.timeZone;r({id:e.id,startDate:new Date(u.data.start),duration:u.data.duration,timeZone:f??e.time_zone,status:u.data.status})}catch{}})(),()=>{o=!0}},[e==null?void 0:e.id,e==null?void 0:e.seat_id,e==null?void 0:e.time_zone]),{booking:n,creationStatus:t}}const uj=100,K1=60,dj=30,fj=8,pj=O.div` display: flex; flex-wrap: wrap; gap: ${W(.5)}; inline-size: 100%; margin-block-start: ${W(1.5)}; `,hj=O.div` background-color: ${F.bgAlt}; border-radius: 6px; padding: ${W(1)} ${W(1.5)}; inline-size: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: ${W(.75)}; `,mj=O.span` font-size: 14px; font-weight: 600; line-height: 1.2; display: inline; `,gj=O.span` font-size: 14px; font-weight: 500; line-height: 1.2; overflow-wrap: break-word; display: inline; `,vj=O.a` display: inline-flex; align-items: center; gap: ${W(.5)}; padding: ${W(.5)} ${W(1)}; border-radius: 4px; background-color: ${F.pillInfoBg}; color: ${F.pillInfoFg}; border: 1px solid ${F.pillInfoBorder}; font-size: 12px; line-height: 1.2; text-decoration: none; cursor: pointer; `,xj=O.span` display: inline-flex; align-items: center; gap: ${W(.5)}; padding: ${W(.5)} ${W(1)}; border-radius: 4px; background-color: ${F.bgAlt}; color: ${F.alt}; border: 1px solid ${F.border}; font-size: 12px; line-height: 1.2; `,bj=O.button` background: none; border: none; color: ${F.text}; text-decoration: underline; cursor: pointer; padding: 0 ${W(1)}; font-size: 14px; line-height: 1.2; `;function D2(e){try{return new Intl.ListFormat(void 0,{type:"conjunction",style:"narrow"}).format(e)}catch{return e.join(", ")}}function yj(e){if(!Number.isFinite(e)||e<0)return"";if(e===0)return"0 B";const t=["B","KB","MB","GB","TB"];let n=e,r=0;for(;n>=1024&&r0?n.toFixed(1):Math.round(n)} ${t[r]}`}function bf(e){const t=yj(e.size);return t?`${e.filename} (${t})`:e.filename}function Cj(e){switch(e.type){case"TEXT":return typeof e.value=="string"?e.value:void 0;case"OPTIONS":return Array.isArray(e.value)&&e.value.length>0?D2(e.value):void 0;case"FILE":case"BOOLEAN":default:return}}function wj(e){return e.type!=="FILE"?[]:Array.isArray(e.value)?e.value:[]}function Y1(e){const t="label"in e&&e.label?e.label.length:0;let n=0;switch(e.type){case"TEXT":n=typeof e.value=="string"?e.value.length:0;break;case"OPTIONS":n=Array.isArray(e.value)?e.value.reduce((r,o)=>r+o.length,0)+Math.min(0,e.value.length-1)*2:0;break;case"FILE":n=Array.isArray(e.value)?D2(e.value.map(bf)).length:0;break;case"BOOLEAN":default:n=0}return t+n}function Sj(e){const t=e.filter(o=>Y1(o)<=uj),n=[];let r=0;for(const o of t){const i=fj+Y1(o);if(r+=i,r<=K1){n.push(o);continue}const a=n.length===e.length-1,l=r-K1;if(a&&l<=dj){n.push(o);break}r-=i}return n}const _j=({customization:e})=>{const t="label"in e?e.label:void 0,n=Cj(e),r=wj(e);return s.jsxs(hj,{children:[t&&s.jsx(mj,{children:t}),n?s.jsx(gj,{children:n}):r.length>0?r.map(o=>o.url?s.jsx(vj,{href:o.url,download:o.filename,target:"_blank",rel:"noopener noreferrer",children:bf(o)},o.key):s.jsx(xj,{children:bf(o)},o.key)):null]})},Oj=({customizations:e})=>{const t=to(),[n,r]=b.useState(!1),o=b.useMemo(()=>n?e:Sj(e),[e,n]),i=e.length-o.length;return e.length===0?null:s.jsxs(pj,{children:[o.map(a=>s.jsx(_j,{customization:a},a.id)),!n&&i>0&&s.jsx(bj,{type:"button",onClick:()=>r(!0),children:t("nativeEcommRuntime.payment.view_hidden_customization",{count:i})})]})},kj={info:{bg:F.pillInfoBg,fg:F.pillInfoFg,border:F.pillInfoBorder},success:{bg:F.pillSuccessBg,fg:F.pillSuccessFg,border:F.pillSuccessBorder},warning:{bg:F.pillWarningBg,fg:F.pillWarningFg,border:F.pillWarningBorder},error:{bg:F.pillErrorBg,fg:F.pillErrorFg,border:F.pillErrorBorder},neutral:{bg:F.pillNeutralBg,fg:F.pillNeutralFg,border:F.pillNeutralBorder}},Ej=O.div` display: inline-flex; align-items: center; justify-content: center; min-block-size: ${W(3)}; padding: ${W(.75)} ${W(1.25)}; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 500; border: 1px solid; ${({type:e})=>{const t=kj[e];return Pe` background-color: ${t.bg}; color: ${t.fg}; border-color: ${t.border}; `}} `,Mj=({label:e,type:t})=>e?s.jsx(Ej,{type:t,children:e}):null,jj=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:16,height:16,...e,children:s.jsx("path",{fill:"currentColor",d:"M3.45 11.828a.75.75 0 0 0 1.302.744L4.1 12.2zm.987-.216-.652-.373zm7.127 0 .651-.373zm-.315.96a.75.75 0 0 0 1.303-.744l-.652.372zM14 8h-.75c0 2.9-2.35 5.25-5.25 5.25v1.5A6.75 6.75 0 0 0 14.75 8zm-6 6v-.75A5.25 5.25 0 0 1 2.75 8h-1.5A6.75 6.75 0 0 0 8 14.75zM2 8h.75C2.75 5.1 5.1 2.75 8 2.75v-1.5A6.75 6.75 0 0 0 1.25 8zm6-6v.75c2.9 0 5.25 2.35 5.25 5.25h1.5A6.75 6.75 0 0 0 8 1.25zm1.65 4.5H8.9a.9.9 0 0 1-.9.9v1.5a2.4 2.4 0 0 0 2.4-2.4zM8 8.15V7.4a.9.9 0 0 1-.9-.9H5.6A2.4 2.4 0 0 0 8 8.9zM6.35 6.5h.75a.9.9 0 0 1 .9-.9V4.1a2.4 2.4 0 0 0-2.4 2.4zM8 4.85v.75a.9.9 0 0 1 .9.9h1.5A2.4 2.4 0 0 0 8 4.1zM4.1 12.2l.652.372.336-.588-.651-.372-.652-.373-.336.589zm.337-.588.65.372a2.25 2.25 0 0 1 1.954-1.134v-1.5a3.75 3.75 0 0 0-3.256 1.89zM7.04 10.1v.75h1.92v-1.5H7.041zm1.918 0v.75a2.25 2.25 0 0 1 1.954 1.134l.651-.372.651-.373A3.75 3.75 0 0 0 8.96 9.35zm2.605 1.512-.651.372.336.588.651-.372.652-.372-.337-.588z"})}),B2=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:16,height:16,...e,children:[s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 17a4 4 0 1 0 0-8 4 4 0 0 0 0 8"}),s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M26 13c0 9-10 16-10 16S6 22 6 13a10 10 0 1 1 20 0"})]}),Tj=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:16,height:16,...e,children:[s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M28 22.165V9.835a1 1 0 0 0-.51-.872l-11-6.187a1 1 0 0 0-.98 0l-11 6.187a1 1 0 0 0-.51.872v12.33a1 1 0 0 0 .51.872l11 6.187a1 1 0 0 0 .98 0l11-6.187a1 1 0 0 0 .51-.872"}),s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M22.128 19.064v-6.5L10 5.875"}),s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M27.862 9.328 16.12 16 4.139 9.327M16.119 16 16 29.353"})]}),yf=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:16,height:16,...e,children:s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 10.4V7.7m0-2.09V5.6M14 8A6 6 0 1 1 2 8a6 6 0 0 1 12 0"})}),q1=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:16,height:16,...e,children:s.jsx("path",{fill:"currentColor",d:"m2.532 4.036-.56-.5zm.34-.32.464.59zm10.257 0-.465.59zm.339.32.56-.5zm0 7.929-.56-.5zm-.34.319-.464-.589zm-10.257 0-.465.588zm-.339-.32.56-.498zm4.246-2.27a.75.75 0 1 0 0 1.5zm.916 1.5a.75.75 0 1 0 0-1.5zm1.834-1.5a.75.75 0 1 0 0 1.5zm2.138 1.5a.75.75 0 1 0 0-1.5zM1.89 8h.75c0-1.1.001-1.855.074-2.427.07-.552.197-.834.38-1.038l-.56-.5-.56-.498c-.462.517-.657 1.136-.748 1.846C1.137 6.073 1.14 6.94 1.14 8zm.643-3.964.56.499q.11-.125.244-.23l-.465-.588-.465-.589q-.234.186-.434.409zm.34-.32.464.59c.227-.18.547-.305 1.152-.374.618-.07 1.43-.07 2.595-.07v-1.5c-1.13 0-2.042-.002-2.764.08-.735.083-1.373.26-1.913.686zm4.211-.605v.75h1.834v-1.5H7.083zm1.834 0v.75c1.166 0 1.977.001 2.595.071.605.069.925.194 1.152.373l.465-.588.465-.589c-.54-.426-1.178-.603-1.913-.686-.722-.082-1.633-.08-2.764-.08zm4.212.606-.465.588q.133.105.244.23l.56-.5.56-.498a3.4 3.4 0 0 0-.434-.409zm.339.319-.56.499c.182.204.308.486.379 1.038.073.572.074 1.326.074 2.427h1.5c0-1.06.002-1.928-.086-2.617-.09-.71-.286-1.329-.748-1.846zM14.11 8h-.75c0 1.1-.001 1.855-.074 2.428-.07.551-.197.833-.38 1.037l.56.5.56.499c.462-.518.657-1.137.748-1.847.088-.689.086-1.556.086-2.617zm-.643 3.965-.56-.5q-.11.125-.244.23l.465.589.465.588q.234-.185.434-.408zm-.34.319-.464-.589c-.227.18-.547.305-1.152.373-.618.07-1.43.071-2.595.071v1.5c1.13 0 2.042.001 2.764-.08.736-.083 1.373-.26 1.913-.687zm-4.211.605v-.75H7.083v1.5h1.834zm-1.834 0v-.75c-1.166 0-1.977-.001-2.595-.07-.605-.07-.925-.195-1.152-.374l-.465.589-.465.588c.54.426 1.178.604 1.913.687.722.081 1.633.08 2.764.08zm-4.212-.605.465-.589a2 2 0 0 1-.244-.23l-.56.5-.56.499q.2.223.434.408zm-.339-.32.56-.498c-.182-.205-.308-.487-.379-1.038C2.64 9.855 2.64 9.1 2.64 8h-1.5c0 1.061-.002 1.928.086 2.617.09.71.286 1.329.747 1.847zm4.246-1.52v.75h.916v-1.5h-.916zm2.75 0v.75h2.138v-1.5H9.528zm-7.64-4.277v.75H14.11v-1.5H1.89z"})}),Aj=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:16,height:16,...e,children:s.jsx("path",{fill:"currentColor",d:"m3.125 13.173.531-.53zm9.748 0-.53-.53zm-2.575-1.625a.75.75 0 1 0-.995-1.122l.498.56zm-3.6-1.122a.75.75 0 1 0-.996 1.122l.498-.561zm4.78-8.126.002.75.047-.001zm-6.99.018-.038.749h.04zM2.264 7.206l.66-.357zm1.457.806-.069.747.052.003zm1.874-1.827.713-.232a.75.75 0 0 0-1.463.232zM8.79 7.889l-.2-.722zm1.635-1.704.745-.081a.75.75 0 0 0-1.476-.088zm1.216 1.713-.286.694zm1.992-.54-.513-.548zm-.053-1.99.592-.46zm-.716-1.725.745-.082zm-.304-.923.523-.538zM2.6 7.392h-.75v2.704h1.5V7.392zm0 2.704h-.75c0 .829-.002 1.525.072 2.078.077.574.248 1.103.674 1.53l.53-.53.531-.53c-.101-.102-.194-.262-.249-.67-.057-.43-.059-1.007-.059-1.878zm.526 3.077-.53.53c.426.427.955.598 1.528.676.552.074 1.249.072 2.076.072v-1.5c-.87 0-1.447-.001-1.875-.059-.407-.055-.567-.147-.668-.249zm3.074.528v.75h3.6v-1.5H6.2zm3.6 0v.75c.828 0 1.525.002 2.077-.072.573-.078 1.102-.249 1.528-.676l-.53-.53-.531-.53c-.101.102-.26.194-.668.249-.428.058-1.005.06-1.875.06zm3.074-.528.531.53c.426-.426.597-.955.674-1.53.074-.552.073-1.248.073-2.077h-1.5c0 .871-.002 1.449-.06 1.878-.054.408-.147.568-.248.67zm.528-3.077h.75V7.392h-1.5v2.704zm-3.6.89-.498-.56c-.247.22-.711.411-1.303.411v1.5c.881 0 1.724-.28 2.298-.79zm-1.8.601v-.75c-.592 0-1.057-.192-1.303-.411l-.498.56-.498.562c.574.51 1.417.789 2.298.789zM11.477 2.3l-.002-.75-6.99.018.003.75.002.75 6.989-.018zm-6.99.018.04-.75c-.748-.038-1.312.241-1.668.682a1.98 1.98 0 0 0-.432 1.211h1.5c0-.06.028-.182.097-.267a.3.3 0 0 1 .116-.087.7.7 0 0 1 .31-.04zM3.179 3.46h-.75c0 .128-.007.264-.068.462-.065.208-.2.513-.491.951l.625.415.624.415c.349-.525.556-.958.674-1.335.12-.387.136-.684.136-.908zm-.685 1.83-.625-.415c-.323.487-.573.94-.613 1.423-.043.516.166.93.347 1.265l.66-.356.66-.357c-.18-.331-.175-.395-.172-.428.005-.068.05-.24.367-.717zm-.231 1.917-.66.356c.256.473.68.757 1.038.922.363.167.736.25 1.01.275l.069-.747.068-.747a1.7 1.7 0 0 1-.52-.143c-.196-.091-.302-.192-.345-.273zm1.457.806-.017.75a2.49 2.49 0 0 0 1.997-.88 2.7 2.7 0 0 0 .644-1.697h-1.5c0 .204-.09.496-.285.725-.178.208-.437.36-.822.352zm1.874-1.827-.714.231c.388 1.195 1.169 1.848 2.006 2.135a3.7 3.7 0 0 0 2.104.06l-.2-.722-.201-.722c-.285.079-.77.118-1.217-.035-.407-.14-.828-.45-1.065-1.18zM8.789 7.89l.201.723c.56-.155 1.043-.498 1.404-.887.36-.387.645-.872.76-1.372l-.73-.168-.731-.17c-.045.196-.18.454-.399.69-.217.234-.471.397-.705.462zm1.635-1.704-.746.08c.053.49.168.97.453 1.39.293.433.71.725 1.223.937l.286-.694.287-.693c-.326-.134-.47-.267-.553-.39-.09-.133-.164-.337-.205-.711zm1.216 1.713-.286.694c1.324.546 2.398-.32 2.79-.687l-.512-.548-.513-.547c-.357.335-.778.566-1.192.395zm1.992-.54.513.547c.668-.626.924-1.845.026-2.998l-.592.461-.591.462c.235.3.27.532.26.672a.47.47 0 0 1-.129.308zm-.053-1.99.592-.46c-.371-.477-.514-.9-.562-1.347l-.746.082-.746.081c.078.709.32 1.399.87 2.106zm-.716-1.725.745-.082c-.016-.148-.038-.384-.097-.61a1.63 1.63 0 0 0-.429-.769l-.523.538-.523.537c-.015-.014.002-.01.024.075.025.095.037.206.057.392zm-.304-.923.523-.538a2.3 2.3 0 0 0-1.653-.63l.049.748.05.749q-.003-.002.066.005a1 1 0 0 1 .152.037.8.8 0 0 1 .29.166z"})}),Nj=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:16,height:16,...e,children:[s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M29 8H3a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1"}),s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 20a4 4 0 1 0 0-8 4 4 0 0 0 0 8m6-12 8 7m-8 9 8-7M10 8l-8 7m8 9-8-7"})]}),Ij=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:16,height:16,...e,children:s.jsx("path",{fill:"currentColor",d:"M13.556 12.267h-.75zm-8.842-4.07a.75.75 0 1 0 .181-1.488l-.09.744zM3.332 6.135a.75.75 0 0 0-1.43.45l.714-.225zm1.382 4.798a.75.75 0 1 0 .181-1.489l-.09.745zM3.332 8.87a.75.75 0 0 0-1.43.45l.714-.225zm1.382 4.798a.75.75 0 0 0 .181-1.489l-.09.745zM2.616 11.83h-.75v.115l.035.11zm6.361-7.11a.75.75 0 0 0 1.5 0zm4.579 2.734h-.75c0-.204.132-.255.03-.18-.087.062-.26.15-.542.237-.554.17-1.365.287-2.294.287v1.5c1.036 0 2.002-.128 2.735-.354.362-.11.71-.259.983-.458.257-.187.588-.526.588-1.032zM10 8.547v-.75c-.928 0-1.739-.117-2.293-.287-.282-.087-.455-.175-.541-.238-.103-.074.03-.023.03.181h-1.5c0 .506.33.845.587 1.032.274.2.621.347.983.458.733.226 1.7.354 2.734.354zM6.445 7.453h.75c0 .204-.132.256-.03.18.087-.062.26-.15.542-.237.554-.17 1.365-.287 2.293-.287v-1.5c-1.035 0-2.001.128-2.734.354-.362.111-.71.259-.983.458-.257.187-.588.526-.588 1.032zM10 6.359v.75c.929 0 1.74.117 2.294.287.281.087.455.175.541.238.103.075-.03.023-.03-.181h1.5c0-.506-.33-.845-.587-1.032-.274-.2-.621-.347-.983-.458-.733-.226-1.7-.354-2.735-.354zm3.556 3.555h-.75c0-.203.132-.255.03-.18-.087.063-.26.15-.542.237-.554.17-1.365.287-2.294.287v1.5c1.036 0 2.002-.128 2.735-.353.362-.111.71-.26.983-.458.257-.187.588-.527.588-1.033zM10 11.008v-.75c-.928 0-1.739-.116-2.293-.287-.282-.086-.455-.174-.541-.237-.103-.075.03-.023.03.18h-1.5c0 .506.33.846.587 1.033.274.199.621.347.983.458.733.225 1.7.353 2.734.353zm3.556-3.555h-.75v4.814h1.5V7.453zm0 4.814h-.75c0-.158.095-.192.002-.118-.086.07-.257.164-.534.258-.547.185-1.35.313-2.274.313v1.5c1.041 0 2.015-.142 2.755-.392.366-.124.716-.288.99-.508.267-.213.56-.564.56-1.053zM10 13.47v-.75c-.922 0-1.726-.128-2.273-.313-.277-.094-.448-.189-.534-.258-.093-.074.002-.04.002.118h-1.5c0 .489.294.84.56 1.053.275.22.625.384.99.508.74.25 1.714.392 2.755.392zm-3.555-1.203h.75V7.453h-1.5v4.814zm3.282-8.643h-.75c0-.204.132-.255.03-.18-.087.062-.26.15-.542.237-.554.17-1.365.287-2.293.287v1.5c1.035 0 2.002-.128 2.734-.353.362-.112.71-.26.983-.458.257-.187.588-.527.588-1.033zM6.172 4.718v-.75c-.929 0-1.74-.117-2.294-.287-.281-.087-.455-.175-.54-.237-.104-.075.028-.024.028.18h-1.5c0 .506.332.846.589 1.033.273.198.62.346.982.458.733.225 1.7.353 2.735.353zM2.616 3.624h.75c0 .204-.132.256-.029.18.086-.062.26-.15.541-.236.554-.17 1.365-.288 2.294-.288v-1.5c-1.035 0-2.002.128-2.735.354-.362.111-.709.259-.982.458-.257.187-.589.526-.589 1.032zM6.172 2.53v.75c.928 0 1.74.117 2.293.288.282.086.455.174.542.237.102.075-.03.023-.03-.18h1.5c0-.507-.331-.846-.588-1.033-.273-.199-.62-.347-.983-.458-.732-.226-1.699-.354-2.734-.354zM4.804 7.453l.091-.744c-.478-.059-.892-.159-1.188-.293-.311-.14-.368-.26-.375-.282l-.716.225-.715.225c.195.62.715.985 1.188 1.2.489.22 1.068.346 1.625.414zm0 2.735.091-.745c-.478-.058-.892-.158-1.188-.292-.311-.14-.368-.26-.375-.282l-.716.225-.715.225c.195.62.715.985 1.188 1.199.489.221 1.068.347 1.625.414zm0 2.735.091-.745c-.478-.058-.892-.158-1.188-.292-.311-.14-.368-.26-.375-.282l-.716.225-.715.225c.195.62.715.985 1.188 1.199.489.22 1.068.347 1.625.414zm-2.188-1.094h.75V3.624h-1.5v8.205zm7.111-7.11h.75V3.624h-1.5v1.094z"})}),Pj=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",width:16,height:16,...e,children:s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 4.111A1.11 1.11 0 0 1 4.11 3h5c.517 0 .775 0 .987.057a1.67 1.67 0 0 1 1.178 1.178c.057.212.057.47.057.987H4.111A1.11 1.11 0 0 1 3 4.112m0 0v5.556c0 1.571 0 2.357.488 2.845S4.762 13 6.333 13h3.334c1.57 0 2.357 0 2.845-.488S13 11.238 13 9.667V8.556c0-1.572 0-2.357-.488-2.846-.489-.488-1.274-.488-2.845-.488H5.222M13 8h-1.111c-.258 0-.388 0-.494.028a.83.83 0 0 0-.589.59c-.028.106-.028.235-.028.493s0 .388.028.494a.83.83 0 0 0 .59.589c.105.028.234.028.493.028h1.11"})}),Lj=e=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",width:16,height:16,...e,children:s.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h26L16 4zm4 0v10m6-10v10m6-10v10m6-10v10M4 22h24M2 26h28"})}),Rj=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 64 64",width:24,height:24,...e,children:[s.jsx("path",{d:"M28.252 40.382H24.09l2.593-16.11h4.232l-2.662 16.11zM20.54 24.273L16.58 35.33l-.478-2.39-1.433-7.235s-.137-1.433-1.98-1.433H6.07L6 24.546s2.048.41 4.368 1.843l3.687 13.993h4.368l6.621-16.11H20.54zM53.44 40.382h3.822l-3.345-16.04h-3.344c-1.57 0-1.911 1.228-1.911 1.228L42.45 40.382h4.369l.887-2.389h5.324l.41 2.39zm-4.574-5.734l2.185-6.006 1.228 6.006h-3.413zM42.723 28.164l.614-3.481S41.494 24 39.583 24c-2.048 0-7.03.887-7.03 5.324 0 4.164 5.802 4.232 5.802 6.348 0 2.184-5.188 1.775-6.895.41l-.614 3.617s1.843.888 4.71.888 7.167-1.502 7.167-5.53c0-4.163-5.87-4.572-5.87-6.347.068-1.775 4.095-1.502 5.87-.546z",fill:"#0066B2"}),s.jsx("path",{d:"M16.102 32.942l-1.433-7.236s-.137-1.433-1.98-1.433H6.07L6 24.546s3.14.683 6.211 3.14c2.936 2.32 3.891 5.256 3.891 5.256z",fill:"#F9A533"})]}),$j=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 64 64",width:24,height:24,...e,children:[s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.133 47h.733l.8-.067.734-.133.733-.134.733-.133.733-.2.667-.267.667-.266.666-.267.667-.333.667-.4.6-.334.6-.466.533-.4.533-.534.534-.466.533-.534.467-.533.4-.6.466-.533.4-.667.334-.6.333-.667.267-.666.266-.667.267-.667.2-.733.2-.733.133-.733.067-.734.067-.8V31.2l-.067-.733-.067-.8-.133-.734-.2-.666-.2-.734-.267-.733-.266-.667-.267-.666-.333-.6-.334-.667-.4-.6-.466-.6-.4-.533-.467-.534-.533-.533-.534-.533-.533-.467-.533-.4-.6-.467-.6-.333-.667-.4-.666-.333-.667-.267-.667-.267-.666-.266-.734-.2-.733-.134-.733-.133-.734-.133-.8-.067h-1.533l-.733.067-.8.133-.734.133-.666.134-.734.2-.733.266-.667.267-.666.267-.6.333-.667.4-.6.333-.6.467-.533.4-.534.467-.533.533-.533.533-.467.534-.4.533-.467.6-.333.6-.4.667-.333.6-.267.666-.267.667-.266.733-.2.733-.134.667-.133.733-.133.8-.067.734v1.533l.067.8.133.733.133.734.134.733.2.733.266.667.267.667.267.666.333.667.4.6.333.667.467.533.4.6.467.533.533.534.533.466.534.534.533.4.6.466.6.334.667.4.6.333.666.267.667.266.733.267.734.2.666.133.734.134.8.133.733.067h.8z",fill:"#FBB231"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.067 47h.733l.8-.066.733-.134.733-.133.734-.134.733-.2.667-.266.666-.267.667-.267.667-.333.6-.4.6-.333L31 44l.6-.4.533-.533.533-.467.467-.533.467-.534.466-.6.4-.533.4-.666.334-.6.333-.667.333-.667.267-.666.2-.667.2-.733.2-.734.133-.733.067-.733.067-.8V31.2l-.067-.733-.067-.8-.133-.733-.2-.667-.2-.733-.2-.734-.267-.666-.333-.667-.333-.6-.334-.667-.4-.6-.4-.6-.466-.533-.467-.533-.467-.534-.533-.533-.533-.467-.6-.4-.6-.466-.6-.333-.6-.4-.667-.334-.667-.266-.666-.267-.667-.267-.733-.2-.734-.133-.733-.133-.733-.134-.8-.067h-1.533l-.734.067-.8.134-.733.133-.733.133-.667.2-.734.267-.666.267-.667.266-.666.334-.6.4-.6.333-.6.466-.6.4-.534.467-.533.533-.467.534-.466.533L10 23l-.4.6-.4.6-.4.667-.333.6-.267.667-.267.666-.266.734-.2.733-.134.667-.133.733-.133.8v.733L7 32l.067.734v.8l.133.733.133.733.134.734.2.733.266.667.267.666.267.667.333.667.4.6.4.666.4.534.467.6.466.533.467.533.533.467.534.533.6.4.6.467.6.333.6.4.666.333.667.267.666.267.734.267.666.2.734.133.733.133.8.134.733.066h.8z",fill:"#EC1C2E"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.333 22.733h7.933v-.8H31l-.667.8zm-1.2 1.8h9.133v-.8H29.6l-.467.8zm-.866 1.867h10v-.867H28.6l-.334.867zm-.667 1.8h10.666v-.866h-10.4l-.266.866zm.4 8.733h10.333v-.8h-10.6l.267.8zm.733 1.8h9.6v-.8h-10l.4.8zm1.067 1.8h8.533v-.8h-9l.467.8zm1.466 1.8h7.067v-.8H30.6l.666.8zM27.267 30h11v-.8H27.4l-.133.8zM34 35.133h4.2v-.8h-4.067l-.133.8zm.333-1.8H38.2v-.8h-3.734l-.133.8zm-7.333-.8h1.066v.8h-1l-.066-.8z",fill:"#FBB231"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.933 31.533h-.067l-.066-.066h-.4l-.067-.067h-.6l-.133.067h-.333l-.067.066h-.067l-.066.067-.067.067v.066h-.067v.334l.067.066.067.067.066.067.134.133.133.067h.133l.2.066.133.067.2.067.134.066.2.067.133.133.133.134.067.133.067.2.066.2v.867l-.066.2-.134.2L24.6 35l-.134.133-.133.133-.133.134-.133.067-.2.133-.134.066h-.2l-.133.067h-.2l-.2.067h-1.2l-.134-.067H21.2l-.067-.066h-.2l-.067-.067H20.8l-.134-.067.267-1.066h.134l.133.066h.2l.067.067h.399l.134.066h.866L23 34.6l.067-.067.066-.066.067-.067.067-.067v-.2l.066-.133-.066-.133-.067-.067-.133-.067-.2-.133-.134-.067-.2-.066-.2-.067-.2-.067-.2-.133-.2-.133-.133-.134-.134-.2-.066-.266-.067-.267v-.533l.067-.134.067-.2.066-.133.067-.2.066-.133.134-.134.133-.066.134-.134.133-.066.2-.067.2-.067h.2l.267-.066h1.666l.067.066h.333l.067.067-.267 1.133zm1.2-2.4h1.4l-.2 1.2h.867l-.2 1.134h-.867l-.533 2.8v.133l.066.067.067.066v.067h.133l.067.067h.667l.066-.067h.067l-.2.933-.067.067H27.4v.067h-.2l-.067.066H25.8l-.134-.066-.133-.067h-.067l-.133-.067-.066-.066-.067-.067v-.2l-.067-.067v-.266l.067-.067v-.133l.933-5.534zM41.4 30.666l-.067-.067h-.067l-.066-.066h-.134L41 30.466h-.066l-.067-.067h-.2l-.133-.066h-.267l-.133-.067h-.4l-.133.067h-.267l-.133.067-.134.066-.133.067-.133.066-.2.134-.067.133L38.4 31l-.134.2-.133.2-.067.266-.133.267-.067.333-.066.2v.667l.066.2v.133l.067.133.067.134.133.133.067.133.133.134.133.066.2.067.134.067.2.067h.266l.067.066h.467l.133-.066h.133l.133-.067h.134l.133-.067.133-.066.067-.067.134-.134-.267 1.4v.067h-.067l-.066.067h-.067l-.067.066H40.2l-.067.067h-.134l-.133.067h-1.533l-.2-.067-.267-.066-.2-.134-.266-.133-.2-.133-.2-.134-.2-.2-.134-.267-.133-.266-.133-.267-.134-.333V33.4l-.066-.334v-.4l.066-.4.067-.2v-.2l.067-.2.066-.2.067-.2.067-.133.066-.2.067-.134.067-.2.066-.133.067-.133.133-.133.067-.134.133-.133.067-.067.133-.133.134-.134.066-.066.134-.067.133-.067.133-.133.134-.066h.133l.133-.067.2-.067L38.8 29h.2l.133-.067h.333l.2-.067h.4l.133.067h.467L40.8 29h.133l.066.066h.134l.133.067h.067l.067.067h.133l.066.066-.2 1.4zm12.466 5.067H52.4l.134-.533v-.067l-.067.134-.067.066-.133.067-.067.067-.133.066L52 35.6l-.066.067-.134.066h-.066l-.134.067h-.266l-.067.067H51l-.2-.067-.266-.067-.2-.066-.2-.134-.2-.133-.2-.133-.133-.2-.134-.2-.066-.267-.067-.2-.067-.267-.066-.266v-.8l.066-.2.067-.334.133-.266.067-.267.133-.267.134-.2.133-.2.2-.2.133-.133.2-.2.2-.067.2-.133.133-.067.267-.133h.2l.2-.067H52l.134.067h.266l.134.067.066.066.134.067h.066l.067.067.067.066.066.067.067.067.067.066.066.067v.067l.067.066.333-2H55l-1.133 6.6z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M51.533 34.533h.266l.134-.067.133-.067.067-.066.133-.067.067-.067.133-.133.067-.067.066-.133.067-.067.067-.133v-.133l.066-.134.067-.133v-.267l.067-.2v-.133l-.067-.133v-.267l-.067-.067v-.133l-.066-.133-.067-.067-.067-.067-.066-.066-.067-.067-.133-.067h-.067l-.133-.066-.134.066h-.133l-.067.067h-.133l-.133.067-.067.133-.067.067-.133.066-.067.134-.066.133-.067.067-.067.133-.066.133v.2l-.067.134v.133l-.067.2.067.267v.266l.067.2.133.2.133.2.134.134h.2z",fill:"#FBB231"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m20.466 34.666-.2 1.067H19v-.2l.067-.133v-.267l-.067.133-.067.067-.067.067-.133.067-.133.066-.133.067-.134.066-.133.067h-.133l-.134.067H17.8l-.2.067h-.4l-.133-.067h-.2l-.134-.067-.133-.066-.133-.067-.134-.133-.066-.067-.134-.067-.066-.133-.067-.067V35l-.067-.133V34.8l-.066-.133v-.534l.066-.2v-.2L16 33.6l.067-.2.133-.133.067-.134L16.4 33l.133-.133.134-.067.133-.133.2-.067.133-.067.2-.066.134-.067h.466l.067-.067h.6l.066-.066h.134l.133.066h.467v-.066l.067-.067v-.333L19.4 31.8l-.067-.133-.066-.067-.067-.067h-.133l-.134-.066h-1.2l-.2.066h-.266l-.134.067H17l-.133.067H16.8l-.067.066h-.066l.333-1.2.133-.066h.134l.133-.067h.067l.133-.067h.4l.133-.066h1.134l.2.066h.266l.2.067.134.067.133.066.2.067.133.133.133.067.067.133.133.134.067.2.067.133v.6l-.534 2.666z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.267 33.333v-.067h-.2L19 33.2h-.134l-.066.066h-.4l-.067.067H18.2l-.067.067H18l-.067.066h-.066l-.067.067-.067.067-.066.066H17.6l-.067.067v.067l-.066.066v.2l-.067.134.067.133.066.133.067.067.067.067h.066l.067.066h.267l.133-.066h.2l.133-.067.067-.067h.133l.067-.066.066-.067.067-.067L19 34.2v-.067h.067V34l.066-.067V33.8l.067-.2v-.134l.067-.133z",fill:"#EC1C2E"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.8 35.733H8.467l1.133-6.6H12l.2 3.934 1.667-3.934H16.4l-1.2 6.6h-1.4l.867-4.933H14.6l-2 4.933H11V35l-.067-.8-.066-.867-.067-.933v-.8l-.067-.533V30.8h-.066L9.8 35.733zm35.8-1.067-.2 1.067h-1.267V35.2l-.067.066-.066.067-.134.067-.066.067-.134.066-.066.067-.134.066-.133.067H43.2l-.134.067h-.2l-.133.067h-.4L42.2 35.8H42l-.134-.067-.133-.066-.133-.067-.134-.133-.133-.067-.067-.067-.066-.133-.067-.067V35l-.067-.133V34.8L41 34.667v-.534l.066-.2v-.2l.067-.133.067-.2.133-.133.067-.134.133-.133.133-.133.134-.067.133-.133.2-.067.133-.067.2-.066.134-.067h.466l.067-.067h.533l.067-.066h.2l.133.066h.467V32.2l.067-.133V32l-.067-.133V31.8l-.067-.133-.066-.067-.134-.067H44.2l-.134-.066h-1.2l-.2.066H42.4l-.134.067h-.133l-.133.067h-.067l-.067.066H41.8l.333-1.2.133-.066h.134l.133-.067h.067l.133-.067h.4l.133-.066H44.4l.133.066h.333L45 30.4l.2.067.133.066.133.067.134.133.133.067.133.133.134.134.066.2.067.133v.6l-.533 2.666z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m45.4 35.8.2-1.134h-.067l-.2 1.067h.067v.066z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m44.066 35.733.067.067H45.4v-.067h-1.334v.067h.067l-.067-.067z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.133 35.2v-.067l-.067.134v.466h.067v-.6.067z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.2 35.867h.666l.2-.067h.134l.133-.067.133-.066.134-.067h.133l.067-.133.133-.067.067-.067.066-.066.067-.067v-.067l-.067.134-.066.066-.134.067-.066.067-.134.066-.133.067H43.4l-.067.067-.133.066H43l-.134.067H42.2v.067zm-1.267-1.534v.067l.066.133v.267l.067.066V35l.067.133.066.067.067.133.067.067.133.133.067.067.133.066.2.067.133.067.2.066V35.8l-.2-.067-.133-.067-.133-.066-.133-.067-.134-.067-.066-.066-.067-.134-.067-.066-.066-.134-.067-.066-.067-.134v-.333L41 34.4v-.067h-.066z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.8 32.4h-.2l-.2.067-.134.066-.2.067-.133.067-.133.066-.134.134-.133.133-.133.133-.134.134-.066.133-.067.2-.067.133-.067.2v.2l-.066.2h.066l.067-.2v-.2l.067-.2.066-.133.067-.2.067-.133.133-.134.067-.133.133-.067.134-.133.2-.067.133-.133.133-.067h.2l.133-.066.2-.067zm1-.134h-.4l-.134.067H42.8v.066h.466l.134-.066h.4v-.067zm.733.067v-.067H43.8v.067h.733zm0-.333v.333l.066-.067V32h-.066zm-.6-.533.133.066h.133l.067.067.067.067.067.066.066.067.067.067V32h.066v-.133l-.066-.067-.067-.133-.066-.067-.067-.067-.133-.066h-.134l-.133-.067v.067z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.8 31.733v.067l.066-.067h.067l.133-.066h.067l.133-.067h.267l.133-.067H43l.2-.066h.734L43.8 31.4h-.467l-.133.067h-.534l-.133.066h-.267l-.133.067h-.134l-.066.067h-.067l-.066.066h.066-.066z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.133 30.467v.067l-.333 1.2h.066l.334-1.2-.067-.067v.067-.067z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.4 30.267H43l-.134.066H42.6l-.067.067H42.4l-.134.067h-.133l.067.066h.066l.134-.066.133-.067h.2l.133-.067H44.4v-.066zM46.133 32l.066-.2v-.2l-.066-.2-.067-.2-.067-.133-.133-.134-.066-.133-.134-.133-.133-.067-.2-.067-.133-.066-.2-.067-.134-.067-.133-.066H44.4v.066h.266l.2.067.133.067h.134l.2.133.133.067.133.066.134.134.133.133.067.133.066.134.067.133.067.2v.2l-.067.133.067.067z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.6 34.666 46.133 32l-.067-.067-.533 2.733h.066z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.333 33.333v-.067h-.067L44.2 33.2H44l-.134.066h-.333l-.067.067h-.2l-.066.067h-.067l-.067.066H43l-.067.067h-.067l-.066.067-.067.066v.067l-.067.067-.066.066v.467l.066.133v.067l.134.067h.066l.067.066h.267l.133-.066h.133l.134-.067h.066l.134-.067.066-.066.067-.067H44l.066-.067.067-.066.067-.067v-.067l.066-.066v-.134l.067-.133v-.4z",fill:"#FBB231"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54.8 35.067V34.8l.133-.133.066-.067.067-.067.133-.066.134-.067h.266l.134.067.133.066.133.067.067.067.067.133.066.133v.134h-.133V35L56 34.867l-.066-.067-.067-.133-.067-.067-.066-.067h-.467l-.133.067-.067.067L55 34.8v.067l-.066.133v.067H54.8z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.266 35.066V34.8h.467v.133h.067l-.067.067v.066h-.2.066l.067-.066v-.133h-.333v.2h-.067z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54.8 35.066v.334l.133.133.066.067.067.066.133.067.134.067h.266l.134-.067.133-.067L56 35.6l.067-.067.067-.133.066-.134v-.2h-.133v.134l-.067.133-.066.067-.067.133-.067.067-.066.066h-.467l-.133-.066-.067-.067L55 35.4v-.067l-.066-.133v-.134H54.8z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.266 35.066v.334h.067v-.267h.133l.2.267h.067l-.134-.267h.067l.067-.067h-.467zm-9.333.667H47.4l.466-2.866.067-.067v-.133l.066-.134v-.066l.067-.134.067-.133.066-.067.067-.133.134-.067.066-.066.133-.067.134-.067.133-.066L49 31.6h.534l.2-1.333-.133.066h-.267l-.133.067h-.067l-.134.067-.066.066-.133.067-.067.067-.067.066-.133.067-.067.067L48.4 31l-.067.067-.067.066-.066.134.133-.934h-1.4l-1 5.4zm-13.4 0H34l.466-2.866.067-.067v-.133l.067-.134v-.066l.066-.134v-.066l.067-.067.067-.133.133-.067.067-.067.133-.066.067-.067h.2l.133-.067h.2l.2-.066v.066h.133v-.2l.067-.066v-.134l.067-.2.066-.133v-.133l.067-.067.067-.133V30.6l.066-.067.067-.133.067-.067h-.134l-.066-.066h-.067l-.133.066h-.267l-.133.067h-.134l-.066.067-.134.066-.066.067-.067.067-.133.066-.067.067-.067.067-.066.066-.067.134-.067.066-.066.134.133-.934h-1.4l-1 5.4z",fill:"#fff"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M54.8 41.066v-.133l.133-.134.066-.066.067-.067.133-.067.134-.066h.266l.134.066.133.067.133.067.067.066.067.134.066.133h-.133L56 40.999l-.066-.133-.067-.067-.067-.066-.066-.067H55.6l-.133-.067-.067.067h-.133l-.133.067-.067.066-.067.067v.133l-.066.067H54.8z",fill:"#FBB231"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.266 41.066v-.133h.467v.133h.067-.134V41h-.333v.066h-.067zm-.466.134v-.134h.133v.134h-.134zm.466 0v-.134h.067v.134h.266v-.067h.067v-.067h.134l-.067.067v.067h-.467zm.8 0v-.134h.133v.134h-.133zm-1.266 0v.266l.133.134.066.133.067.067.133.066.134.067h.266l.134-.067.133-.066.133-.067.067-.133.067-.134.066-.133V41.2h-.133v.133l-.067.133-.066.067-.067.067-.067.133h-.066l-.134.067h-.2l-.133-.067h-.133l-.067-.133-.067-.067v-.067l-.066-.133V41.2h-.134z",fill:"#FBB231"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.266 41.2v.266h.067v-.2h.133l.2.2h.067l-.134-.2.067-.066h.067-.467z",fill:"#FBB231"}),s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m32.733 31.933-.067-.333-.066-.267-.134-.2-.133-.2-.133-.2-.134-.133-.2-.134-.2-.066-.2-.067-.2-.067-.2-.066h-.8l-.333.066-.333.067-.267.133-.267.134-.2.2-.2.2-.133.2-.133.2-.134.2-.066.2-.067.2-.067.2-.066.2v1.133l.066.333.067.267.133.267.134.2.2.2.2.2.2.133.2.133.266.067.267.067.267.066.266.067h2l.067-.067.067-.066.2-1.267-.134.067-.133.066-.133.067-.134.067-.133.066h-1.6L30.2 34.4l-.134-.067-.066-.067-.067-.066-.067-.067-.066-.067-.067-.066-.067-.067-.066-.067-.067-.066-.067-.067v-.267h3.267v-.333l.067-.4.066-.4-.133-.4zm-1.4.467h-1.867v-.334l.067-.133.067-.067.066-.066.067-.067.067-.067.066-.066.067-.067.067-.067.066-.066.067-.067h.533l.067.067.067.066.066.067.067.067.067.066.066.067.067.067.067.066v.4l.133.134z",fill:"#fff"})]}),Dj=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 64 64",width:24,height:24,...e,children:[s.jsx("path",{d:"M11.58 43.6h43.21c1.145 0 2.09-.946 2.09-2.09V26.873c-4.182 2.639-19.813 11.699-45.3 16.727z",fill:"#F58220"}),s.jsx("path",{d:"M26.414 21.05c-1.742 0-3.136 1.344-3.136 2.987 0 1.742 1.344 3.086 3.136 3.086 1.743 0 3.087-1.344 3.087-3.037 0-1.692-1.344-3.036-3.087-3.036z",fill:"url(#discover-a)"}),s.jsx("path",{d:"M8.693 21.15H7v5.824h1.643c.896 0 1.543-.2 2.09-.697a2.992 2.992 0 0 0 1.046-2.24c.05-1.693-1.244-2.888-3.086-2.888zm1.344 4.38c-.349.348-.846.448-1.543.448h-.299v-3.883h.299c.746 0 1.194.15 1.543.448.398.349.647.896.647 1.444 0 .647-.249 1.195-.647 1.543zm3.484-4.38h-1.145v5.824h1.145v-5.825zm2.789 2.24c-.698-.25-.897-.399-.897-.747 0-.349.348-.647.846-.647.349 0 .598.149.896.448l.598-.797C17.255 21.2 16.657 21 16.01 21c-1.045 0-1.841.697-1.841 1.692 0 .797.348 1.195 1.443 1.593.448.15.697.25.797.349.248.15.348.348.348.597 0 .498-.398.846-.896.846-.548 0-.995-.248-1.244-.796l-.747.697c.547.747 1.145 1.095 2.04 1.095 1.195 0 1.992-.796 1.992-1.941.05-.847-.299-1.245-1.593-1.743zm2.04.696c0 1.742 1.344 3.037 3.086 3.037.498 0 .896-.1 1.444-.349V25.43c-.448.448-.846.647-1.394.647-1.145 0-1.941-.846-1.941-1.99 0-1.096.846-1.992 1.891-1.992.548 0 .946.2 1.444.647v-1.344c-.498-.249-.896-.348-1.394-.348-1.792-.05-3.136 1.344-3.136 3.036zm13.74.996-1.594-3.933h-1.244l2.489 5.974h.647l2.489-5.974h-1.245l-1.543 3.933zm3.334 1.892h3.236v-.946h-2.09v-1.593h1.99v-.996h-1.99v-1.294h2.09v-.996h-3.236v5.825zm7.716-4.082c0-1.095-.746-1.743-2.09-1.743h-1.693v5.825h1.145v-2.34h.15l1.592 2.34h1.394l-1.842-2.44c.896-.199 1.344-.746 1.344-1.642zm-2.29.945h-.298v-1.791h.348c.697 0 1.095.298 1.095.846 0 .647-.398.945-1.145.945z",fill:"#001722"}),s.jsx("path",{d:"M43.937 21.597c0-.1-.05-.15-.2-.15h-.149v.498h.1v-.199l.149.2h.15l-.15-.2c.1-.05.1-.1.1-.149zm-.2.05v-.15c.05 0 .1 0 .1.05 0 .1-.05.1-.1.1z",fill:"#231F20"}),s.jsx("path",{d:"M43.787 21.249c-.249 0-.448.2-.448.448 0 .249.2.448.448.448.25 0 .448-.2.448-.448a.446.446 0 0 0-.448-.448zm0 .797a.34.34 0 0 1-.348-.349c0-.2.15-.348.348-.348.2 0 .349.149.349.348 0 .2-.15.349-.349.349z",fill:"#231F20"}),s.jsx("defs",{children:s.jsxs("radialGradient",{id:"discover-a",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(26.386 24.085) scale(3.07686)",children:[s.jsx("stop",{offset:".006",stopColor:"#FFEEE0"}),s.jsx("stop",{offset:".11",stopColor:"#FEE9D7"}),s.jsx("stop",{offset:".279",stopColor:"#FDDBBF"}),s.jsx("stop",{offset:".493",stopColor:"#FBC597"}),s.jsx("stop",{offset:".744",stopColor:"#F8A560"}),s.jsx("stop",{offset:"1",stopColor:"#F48120"})]})})]}),Bj=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 80 80",width:24,height:24,...e,children:[s.jsx("path",{d:"M15 16v50h50V16H15z",fill:"#fff"}),s.jsx("path",{d:"m56.083 28.267 1.6-4.35H65V16H15v50h50v-7.9h-6.9l-2.55-2.983L52.9 58.1H33.3V42.217h-6.467l8.084-18.3h7.866l1.9 4.15v-4.15h9.767l1.633 4.35zm-5.516 2.883-.017-1.75.667 1.75 3.25 8.683H57.7l3.267-8.683.633-1.733v10.416H65V26.5h-5.65l-2.567 6.767L56.1 35.1l-.7-1.833-2.583-6.767h-5.65v13.333h3.4V31.15zm-7.317 8.683h3.917L41.3 26.5h-4.55l-5.9 13.333h3.867l1.033-2.566h6.467l1.033 2.566zm-4.933-8.816.666-1.667.667 1.667 1.383 3.366h-4.1l1.384-3.366zm-2.284 11.216v13.284h11.134v-2.884h-7.734v-2.316h7.584V47.45h-7.584v-2.333h7.734v-2.884H36.033zM59.55 55.517h4.417l-6.234-6.667 6.234-6.617h-4.35L55.6 46.55l-4-4.317h-4.433l6.216 6.667-6.216 6.617h4.3l4.05-4.334 4.033 4.334zm1.683-6.684L65 52.667V45.05l-3.767 3.783z",fill:"#006fcf"})]}),zj=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 174.271 174.274",width:24,height:24,...e,children:[s.jsx("path",{fill:"#fdb913",d:"M0,0 L0,174.271 L174.271,174.274 L174.271,0z"}),s.jsx("path",{fill:"#231f20",d:"m96.958 88.954-.014-30.139 7.867-1.867V60.9s2.038-5.196 6.767-6.402a4.528 4.528 0 0 1 2.188-.147v7.69a11.023 11.023 0 0 0-4.122.858c-2.907 1.148-4.37 3.653-4.37 7.477l.005 16.642ZM55.487 98.755s-1.28-1.918-1.28-8.7V75.05l-4.047.963V69.83l4.057-.958v-6.74l8.365-1.975v6.739l5.91-1.404v6.175l-5.91 1.403s-.01 12.295 0 15.28c0 6.949 1.844 8.283 1.844 8.283ZM69.367 80.825c0-5.358.763-9.267 2.401-12.267 1.95-3.56 5.145-5.88 9.801-6.94 9.177-2.087 12.49 3.345 12.361 10.629-.049 2.605-.037 3.874-.037 3.874l-16.168 3.8v.26c0 5.09 1.067 7.505 4.292 6.82 2.786-.587 3.561-2.332 3.781-4.49.036-.348.053-1.233.053-1.233l7.574-1.815s.018.62.007 1.316c-.066 2.892-.907 10.066-11.434 12.555-9.972 2.367-12.63-3.723-12.63-12.51m12.537-13.592c-2.679.608-4.084 3.236-4.145 7.59l8.133-1.937c.014-.197.016-.631.014-1.311-.014-3.287-1.03-5.022-4.002-4.342M142.08 63.2c-.314-9.179 2.067-16.464 12.308-18.784 6.527-1.483 9.006.215 10.261 1.856 1.207 1.566 1.673 3.678 1.673 6.636l.007.543-8.012 1.904-.006-1.115c.006-3.508-.969-4.842-3.517-4.204-3.03.761-4.254 3.637-4.254 9.355 0 2.03.01 2.394.01 2.668 0 5.811.793 8.471 4.285 7.74 3.03-.626 3.444-3.286 3.493-5.618.006-.366.021-1.538.021-1.538l8-1.89s.008.591.008 1.248c-.02 7.62-4.036 12.422-11.56 14.173-10.366 2.43-12.396-3.56-12.718-12.974M114.383 76.051c0-6.982 4.09-9.19 10.246-11.737 5.536-2.29 5.656-3.427 5.679-5.417.03-1.675-.746-3.108-3.502-2.405a4.16 4.16 0 0 0-3.336 3.943 14.368 14.368 0 0 0-.052 1.547l-7.762 1.833a15.442 15.442 0 0 1 .536-4.586c1.24-4.175 4.923-6.984 11.279-8.455 8.258-1.903 11.01 1.721 11.02 7.358v13.349c0 6.456 1.199 7.402 1.199 7.402l-7.62 1.803a16.56 16.56 0 0 1-1.021-2.737s-1.67 4.204-7.423 5.556c-6.043 1.425-9.243-2.32-9.243-7.454m15.872-9.534a28.771 28.771 0 0 1-4.054 2.374c-2.54 1.241-3.688 2.772-3.688 5.13 0 2.042 1.265 3.383 3.564 2.815 2.466-.622 4.178-2.923 4.178-6.12ZM11.749 119.882a4.837 4.837 0 0 1-4.053-7.468l.054-.07.09-.024 11.379-2.686v8.641l-.177.041a396.424 396.424 0 0 1-6.301 1.463 4.758 4.758 0 0 1-.992.103M11.749 130.936a4.83 4.83 0 0 1-4.831-4.825 4.779 4.779 0 0 1 .778-2.627l.054-.08.09-.024 11.379-2.685v8.641l-.177.046c-2.581.62-5.666 1.334-6.301 1.461a5.116 5.116 0 0 1-.992.093M11.749 142.012a4.834 4.834 0 0 1-4.831-4.83 4.762 4.762 0 0 1 .778-2.626l.054-.087 11.469-2.703v8.64l-.177.047c-2.726.656-5.753 1.34-6.301 1.46a5.04 5.04 0 0 1-.992.099M10.406 109.294l-.003-48.349 8.815-2.083v48.348l-8.812 2.084zM32.362 105.18a5.439 5.439 0 1 0-10.877 0l.01 45.19a14.744 14.744 0 0 0 14.715 14.726c4.117 0 15.395-.02 15.395-.02l.005-18.852.005-21.023a7.12 7.12 0 0 0-3.163-5.927l-13.72-9.32-.004 21.163a1.17 1.17 0 1 1-2.34 0c0-.227-.026-23.141-.026-25.936M39.707 71.465a11.892 11.892 0 0 0-7.846 6.066v-3.398l-7.937 1.878.01 21.7a8.12 8.12 0 0 1 8.356 1.461v-14.01c0-3.357 1.67-6.038 4.056-6.564 1.795-.394 3.294.248 3.294 3.445l.006 20.442 8.36-1.96V78.9c0-5.243-2.019-8.908-8.299-7.435M161.173 40.52a5.168 5.168 0 1 1 5.163-5.164 5.17 5.17 0 0 1-5.163 5.165m0-9.685a4.519 4.519 0 1 0 4.518 4.52 4.524 4.524 0 0 0-4.518-4.52"}),s.jsx("path",{fill:"#231f20",d:"M159.291 32.277h2.227a1.456 1.456 0 0 1 1.601 1.62c0 .819-.363 1.448-1.05 1.555v.012c.625.064.954.409.986 1.296.012.4.018.896.037 1.282a.65.65 0 0 0 .3.545h-1.139a1.05 1.05 0 0 1-.17-.56c-.035-.377-.026-.733-.043-1.191-.017-.688-.228-.99-.919-.99h-.824v2.74h-1.006Zm1.812 2.81a.928.928 0 0 0 1.007-1.023c0-.673-.29-1.027-.954-1.027h-.859v2.05Z"})]}),Fj=e=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 64 64",width:24,height:24,...e,children:[s.jsx("path",{fill:"#179BD7",d:"M49.626 19.26c-.048.307-.102.62-.164.963-2.128 10.898-9.397 14.674-18.687 14.674h-4.731a2.295 2.295 0 0 0-2.266 1.925l-2.408 15.37-.688 4.332a1.21 1.21 0 0 0 1.197 1.398h8.358a2.013 2.013 0 0 0 1.994-1.701l.08-.43 1.58-10.025.1-.549a2.023 2.023 0 0 1 2.022-1.666h1.251c8.131 0 14.49-3.299 16.366-12.855.78-3.992.375-7.323-1.68-9.664a7.93 7.93 0 0 0-2.324-1.772Z"}),s.jsx("path",{fill:"#222D65",d:"M47.402 18.374a15.2 15.2 0 0 0-2.065-.457 26.158 26.158 0 0 0-4.17-.308H28.531a2.02 2.02 0 0 0-1.994 1.709l-2.685 17.029-.077.482a2.295 2.295 0 0 1 2.267-1.925h4.733c9.29 0 16.559-3.773 18.687-14.688.061-.329.116-.643.163-.965a11.078 11.078 0 0 0-1.748-.737l-.477-.14h.002Z"}),s.jsx("path",{fill:"#253B80",d:"M26.54 19.318a2.01 2.01 0 0 1 1.12-1.506c.274-.124.572-.184.872-.174h12.636c1.395-.01 2.789.09 4.17.303.696.11 1.386.262 2.064.457l.48.15a11.56 11.56 0 0 1 1.749.736c.63-4.035 0-6.782-2.186-9.27C45.037 7.25 40.7 6.079 35.146 6.079h-16.12a2.306 2.306 0 0 0-2.267 1.928l-6.742 42.6a1.381 1.381 0 0 0 1.363 1.604h9.973l2.498-15.863 2.689-17.03Z"})]}),Uj=Wc` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Hj=O.span` display: inline-block; inline-size: ${({$size:e})=>`${e}px`}; block-size: ${({$size:e})=>`${e}px`}; border: ${({$thickness:e})=>`${e}px`} solid currentColor; border-top-color: transparent; border-radius: 50%; animation: ${Uj} 0.9s linear infinite; flex-shrink: 0; `,z2=({size:e=16,thickness:t=2,className:n})=>s.jsx(Hj,{$size:e,$thickness:t,className:n,role:"status","aria-label":"Loading"}),Wj={info:{bg:F.noticeInfoBg,fg:F.noticeInfoFg,border:F.noticeInfoBorder},warning:{bg:F.noticeWarningBg,fg:F.noticeWarningFg,border:F.noticeWarningBorder},error:{bg:F.noticeErrorBg,fg:F.noticeErrorFg,border:F.noticeErrorBorder}},Vj=O.div` display: flex; align-items: flex-start; gap: ${W(2)}; padding: ${W(1.5)} ${W(2)}; border-radius: 6px; border: 1px solid; font-size: 13px; line-height: 1.4; ${({level:e})=>{const t=Wj[e];return Pe` background-color: ${t.bg}; color: ${t.fg}; border-color: ${t.border}; `}} `,X1=O.span` display: inline-flex; align-items: center; justify-content: center; inline-size: 16px; block-size: 16px; flex-shrink: 0; svg { inline-size: 16px; block-size: 16px; } `,Gj=O.div` flex-grow: 1; `,Cf=({level:e,text:t,isLoading:n,dataAuto:r})=>s.jsxs(Vj,{level:e,"data-auto":r,children:[n?s.jsx(X1,{"aria-hidden":"true",children:s.jsx(z2,{})}):s.jsx(X1,{"aria-hidden":"true",children:s.jsx(yf,{})}),s.jsx(Gj,{children:t})]}),Kj=O.div` position: relative; max-inline-size: 100%; `,Yj=O.div` position: relative; display: flex; align-items: stretch; gap: ${W(2.5)}; `,qj=O.img` display: block; object-fit: cover; border-radius: 8px; inline-size: 110px; block-size: 110px; flex-shrink: 0; `,Xj=O.div` display: flex; flex-direction: column; gap: ${W(1)}; flex-grow: 1; min-width: 0; `,Zj=O.div` font-size: 16px; font-weight: 500; line-height: 1.2; `,Z1=O.div` display: flex; align-items: center; gap: 0.7em; font-size: 16px; font-weight: 500; line-height: 1.2; & > span:first-child { color: ${F.text}; } & > span:last-child { color: ${F.alt}; } `,Qj=O.div` display: flex; flex-direction: column; align-items: flex-end; gap: ${W(3)}; flex-shrink: 0; `,Jj=O.div` display: flex; align-items: start; gap: 1em; `,eT=O.span` font-size: 16px; font-weight: 500; line-height: 1.2; `,tT=O.span` font-size: 16px; font-weight: 500; line-height: 1.2; text-align: end; `,nT=O.div` margin-block-start: ${W(1.5)}; `,rT=O.div` border: 1px solid ${F.border}; display: flex; align-items: center; justify-content: space-between; gap: ${W(1)}; flex-wrap: wrap; min-block-size: 58px; padding: ${W(1.5)} ${W(2)}; border-radius: 6px; `,oT=O.span` font-size: 14px; line-height: 1.2; color: ${F.alt}; `,iT={accepted:"success",pending:"info",cancelled:"neutral",rejected:"neutral"},aT={accepted:"nativeEcommRuntime.booking.status.accepted",pending:"nativeEcommRuntime.booking.status.pending",cancelled:"nativeEcommRuntime.booking.status.cancelled",rejected:"nativeEcommRuntime.booking.status.cancelled"},sT=({item:e,currency:t})=>{const n=to(),{booking:r,creationStatus:o}=cj(e.booking),i=e.booking!==null;return s.jsxs(Kj,{"data-auto":"cart-item-line-product",children:[s.jsxs(Yj,{children:[e.image_url&&s.jsx(qj,{src:e.image_url,alt:""}),s.jsxs(Xj,{children:[s.jsx(Zj,{children:e.name}),e.option_values.map(a=>s.jsxs(Z1,{"data-auto":`cart-item-custom-field-${a.name}`,children:[s.jsx("span",{children:a.name}),s.jsx("span",{children:a.value})]},a.name)),e.sku&&s.jsxs(Z1,{"data-auto":"cart-item-sku",children:[s.jsx("span",{children:n("nativeEcommRuntime.emails.common.lineItem.sku")}),s.jsx("span",{children:e.sku})]})]}),s.jsx(Qj,{children:s.jsxs(Jj,{children:[s.jsxs(eT,{children:["× ",e.quantity]}),s.jsx(tT,{"data-auto":"line-item-price",children:L2(e.subtotal,t)})]})})]}),e.product_customizations.length>0&&s.jsx(Oj,{customizations:e.product_customizations}),i&&s.jsx(nT,{children:o==="FAILED"?s.jsx(Cf,{level:"error",text:n("nativeEcommRuntime.booking.failedNotice")}):r?s.jsxs(rT,{children:[s.jsx(Mj,{label:n(aT[r.status]),type:iT[r.status]}),s.jsx(oT,{children:n("nativeEcommRuntime.booking.confirmationNumber",{number:r.id})})]}):s.jsx(Cf,{level:"info",text:n("nativeEcommRuntime.booking.processingNotice"),isLoading:!0})})]})},lT=O.div` position: relative; display: flex; flex-direction: column; gap: ${W(2)}; `,_n=O.div` display: flex; justify-content: space-between; font-size: 16px; font-weight: 500; line-height: 1.2; `,cT=O(_n)` font-size: 18px; font-weight: 600; small { font-size: 16px; font-weight: 500; } `,Sn=O.span` display: flex; align-items: center; flex-wrap: wrap; gap: 0.4em; `,uT=O.span` color: ${F.alt}; display: inline-block; text-decoration: line-through; margin-inline-end: ${W(.5)}; `,dT=O.div` background-color: ${F.bgAlt}; border: 1px solid ${F.border}; border-radius: 5px; padding: ${W(1)}; `,Q1=O.span` cursor: help; display: inline-flex; align-items: center; color: ${F.alt}; svg { inline-size: 14px; block-size: 14px; } `,J1=O.span` position: relative; display: inline-flex; align-items: center; line-height: 1; [data-auto='tooltip-content'] { position: absolute; inset-block-start: 100%; inset-inline-start: 50%; transform: translateX(-50%); margin: 0; } [data-auto='tooltip-content-box'] { max-width: 280px; width: max-content; } `,fT=({summary:e,currency:t,hasTaxesIncludedInPrices:n,hasEstimatedTaxes:r=!1})=>{const o=to(),i=f=>L2(f,t),a=!!e.taxes&&e.taxes.length>1,l=e.fees&&e.fees.length>0?e.fees:null,c=e.taxes?r?[{name:o("nativeEcommRuntime.purchaseSummary.taxes.estimated"),total_amount:e.taxes.reduce((f,p)=>f+p.total_amount,0),percentage:null}]:e.taxes.map(f=>({name:f.name,total_amount:f.total_amount,percentage:f.percentage})):null,u=(()=>{var p;if(!e.total_taxes||!n)return;const f=i(e.total_taxes);if(r)return o("nativeEcommRuntime.purchaseSummary.taxes.includingEstimated",{taxAmount:f});if(((p=e.taxes)==null?void 0:p.length)===1){const d=e.taxes[0],g=`${f} ${d.name} (${d.percentage}%)`;return o("nativeEcommRuntime.purchaseSummary.taxes.includingSingle",{tax:g})}return o("nativeEcommRuntime.purchaseSummary.taxes.includingMultiple",{taxAmount:f})})();return s.jsxs(lT,{"data-auto":"cart-summary-fees",children:[e.subtotal_amount!=null&&s.jsxs(_n,{children:[s.jsx(Sn,{children:o("nativeEcommRuntime.purchaseSummary.subtotal.label")}),s.jsxs("span",{children:[e.original_subtotal_amount!=null&&s.jsx(uT,{children:i(e.original_subtotal_amount)}),i(e.subtotal_amount)]})]}),l==null?void 0:l.map(f=>s.jsxs(_n,{children:[s.jsxs(Sn,{children:[s.jsx("span",{children:f.name}),f.description&&s.jsx(J1,{children:s.jsx(cf,{text:f.description,children:s.jsx(Q1,{"aria-hidden":"true",children:s.jsx(yf,{})})})})]}),s.jsx("span",{children:i(f.amount)})]},f.id)),e.discount_amount!=null&&s.jsxs(_n,{children:[s.jsx(Sn,{children:o("nativeEcommRuntime.purchaseSummary.discount.label")}),s.jsxs("span",{"data-auto":"cart-discounts",children:["− ",i(e.discount_amount)]})]}),e.shipping_amount!=null&&s.jsxs(_n,{children:[s.jsx(Sn,{children:o("nativeEcommRuntime.purchaseSummary.shipping.label")}),s.jsx("span",{children:i(e.shipping_amount)})]}),!n&&s.jsxs(s.Fragment,{children:[e.net_total_amount!=null&&s.jsxs(_n,{children:[s.jsx(Sn,{children:o("nativeEcommRuntime.purchaseSummary.netTotal.label")}),s.jsx("span",{children:i(e.net_total_amount)})]}),e.net_total_amount!=null&&s.jsx(er,{}),c==null?void 0:c.map(f=>s.jsxs(_n,{children:[s.jsxs(Sn,{children:[s.jsxs("span",{children:[f.name,f.percentage?` (${f.percentage}%)`:""]}),r&&s.jsx(J1,{children:s.jsx(cf,{text:o("nativeEcommRuntime.purchaseSummary.taxes.notice.estimated"),children:s.jsx(Q1,{"aria-hidden":"true",children:s.jsx(yf,{})})})})]}),s.jsx("span",{children:i(f.total_amount)})]},`${f.name}_${f.percentage??""}`)),!!e.total_taxes&&!r&&s.jsxs(_n,{children:[s.jsx(Sn,{children:o("nativeEcommRuntime.purchaseSummary.totalTaxes.label")}),s.jsx("span",{children:i(e.total_taxes)})]})]}),s.jsx(er,{}),e.total_amount!=null&&s.jsxs(cT,{children:[s.jsx(Sn,{children:s.jsxs("span",{children:[o("nativeEcommRuntime.purchaseSummary.total.label")," ",u&&s.jsx("small",{children:u})]})}),s.jsx("span",{"data-auto":"cart-total-amount",children:i(e.total_amount)})]}),n&&a&&!r&&s.jsx(dT,{children:c==null?void 0:c.map(f=>s.jsxs(_n,{children:[s.jsx(Sn,{children:s.jsxs("span",{children:[f.name,f.percentage?` (${f.percentage}%)`:""]})}),s.jsx("span",{children:i(f.total_amount)})]},`${f.name}_${f.percentage??""}`))})]})},pT=({order:e})=>{const t=to();return s.jsxs(tu,{children:[s.jsxs(nu,{children:[t("nativeEcommRuntime.order.summary"),e.invoice_number?` - ${e.invoice_number}`:""]}),s.jsx(JM,{children:e.items.map((n,r)=>s.jsxs(Ce.Fragment,{children:[s.jsx(sT,{item:n,currency:e.currency}),rtypeof e=="number"?`${e}px`:e}; block-size: ${({$height:e})=>`${e}px`}; border-radius: 8px; background-color: ${F.border}; animation: ${xT} 1.2s ease-in-out infinite; `,bT=O.div` margin: 5px 0; `,Oa=({rows:e,dataAuto:t,children:n,icon:r,iconUrl:o})=>s.jsxs(hT,{"data-auto":t,children:[s.jsx(mT,{"aria-hidden":"true",children:o?s.jsx("img",{src:o,alt:""}):r}),s.jsxs(gT,{children:[e.map(i=>i.isSeparator?s.jsx(bT,{children:s.jsx(er,{})},i.key):i.isLoading?s.jsxs(em,{"data-auto":t?`${t}_${i.key}`:void 0,children:[i.label&&s.jsx(tm,{children:i.label}),s.jsx(nm,{$height:14,$width:i.loadingLabelWidth??82}),s.jsx(nm,{$height:14,$width:i.loadingValueWidth??120})]},i.key):s.jsxs(em,{"data-auto":t?`${t}_${i.key}`:void 0,children:[i.label&&s.jsx(tm,{children:i.label}),i.value&&s.jsx(vT,{children:i.value})]},i.key)),n]})]}),yT=({order:e})=>{const t=to(),n=eh(e),r=[{key:"email",label:t("nativeEcommRuntime.address_form.email"),value:e.email??void 0},..._a(n.CONTACT_INFO)];return s.jsxs(tu,{children:[s.jsx(nu,{children:t("nativeEcommRuntime.contact_information.title")}),s.jsx(Oa,{rows:r,dataAuto:"order-contact-infos",icon:s.jsx(jj,{})})]})},rm=({order:e})=>{var a,l;const t=to(),n=e.pickup,r=eh(e),o=[{key:"title",label:t(n?"nativeEcommRuntime.pickup.address":"nativeEcommRuntime.shipping.address")}];n||o.push({key:"name",value:((a=e.shipping_address)==null?void 0:a.full_name)??void 0}),o.push({key:"address",value:n?ij(t,n.address):$2(t,e.shipping_address)}),o.push(...Ql(_a(r.SHIPPING_ADDRESS)));const i=[{key:"title",label:n?n.name:t("nativeEcommRuntime.shipping.method.title")},{key:"description",value:n?n.instructions??void 0:(l=e.shipping_method)==null?void 0:l.name}];return e.shipping_instructions&&!n&&i.push({key:"shippingInstructions",value:e.shipping_instructions}),i.push(...Ql(_a(r.SHIPPING_METHODS))),s.jsxs(tu,{children:[s.jsx(nu,{children:t(n?"nativeEcommRuntime.pickup.title":"nativeEcommRuntime.shipping.title")}),s.jsxs(P2,{children:[s.jsx(Oa,{rows:o,dataAuto:"order-shipping-address",icon:s.jsx(B2,{})}),s.jsx(Oa,{rows:i,dataAuto:"order-shipping-method",icon:s.jsx(Tj,{})})]})]})};function CT(e){if(e.payment&&e.payment.confirmed_method.name!=="UNKNOWN")return e.payment.confirmed_method}function wT(e){switch(e==null?void 0:e.icon_name){case"CARD_VISA":return s.jsx(Rj,{});case"CARD_MASTERCARD":return s.jsx($j,{});case"CARD_DISCOVER":return s.jsx(Dj,{});case"CARD_AMEX":return s.jsx(Bj,{});case"CARD_INTERAC":return s.jsx(zj,{});case"PAYPAL":return s.jsx(Fj,{});case"CARD_UNKNOWN":return s.jsx(q1,{});case"MANUAL":return s.jsx(Aj,{});case"CASH":return s.jsx(Nj,{});case"CRYPTO":return s.jsx(Ij,{});case"WALLET":return s.jsx(Pj,{});case"BANK_TRANSFER":case"BANK_REDIRECT":case"BANK_DEBIT":return s.jsx(Lj,{});default:return s.jsx(q1,{})}}const om=({order:e,isRefreshing:t})=>{const n=to(),r=CT(e),o=e.payment_status==="PENDING",i=nl(e),a=eh(e),l=r!=null&&r.instructions?"nativeEcommRuntime.order.pending_payment_notice":"nativeEcommRuntime.order.pending_payment_notice_no_instructions",c=[{key:"title",label:n("nativeEcommRuntime.billing.address")},{key:"address",value:$2(n,e.billing_address)},...Ql(_a(a.BILLING_ADDRESS))],u=G1("name",{hasPaymentMethod:!!r,isRefreshing:t,shouldRefresh:i}),f=G1("details",{hasPaymentMethod:!!r,isRefreshing:t,shouldRefresh:i}),p=[{key:"title",label:n("nativeEcommRuntime.paymentMethod.title")}];return u?p.push({key:"name",isLoading:!0}):r&&p.push({key:"name",value:sj(n,r)}),r!=null&&r.details?p.push({key:"details",value:r.details}):f&&p.push({key:"details",isLoading:!0,loadingLabelWidth:"100%",loadingValueWidth:"100%"}),p.push(...Ql(_a(a.PAYMENT_METHODS))),s.jsxs(tu,{children:[s.jsx(nu,{children:n("nativeEcommRuntime.payment.title")}),r&&o&&s.jsx(tj,{children:s.jsx(Cf,{level:"warning",text:n(l)})}),s.jsxs(P2,{children:[s.jsx(Oa,{rows:c,dataAuto:"order-billing-address",icon:s.jsx(B2,{})}),s.jsx(Oa,{rows:p,dataAuto:"order-payment-method",icon:wT(r),iconUrl:r==null?void 0:r.icon_url,children:(r==null?void 0:r.instructions)&&s.jsx(ej,{dangerouslySetInnerHTML:{__html:r.instructions}})})]})]})},im=({order:e,isRefreshing:t,layout:n="ONE_COLUMN"})=>{const r=!!e.shipping_method||!!e.pickup,o=n==="TWO_COLUMNS"&&r;return s.jsxs(I2,{"data-auto":"ssr-order-confirmation-widget",$twoColumns:o,children:[s.jsx(pT,{order:e}),s.jsx(er,{}),s.jsx(yT,{order:e}),o?s.jsxs(s.Fragment,{children:[s.jsx(er,{}),s.jsxs(QM,{"data-auto":"ssr-order-confirmation-columns",children:[s.jsx(rm,{order:e}),s.jsx(om,{order:e,isRefreshing:t})]})]}):s.jsxs(s.Fragment,{children:[r&&s.jsxs(s.Fragment,{children:[s.jsx(er,{}),s.jsx(rm,{order:e})]}),s.jsx(er,{}),s.jsx(om,{order:e,isRefreshing:t})]})]})},ST=Wc` 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } `,ve=O.div` inline-size: ${({$w:e})=>e??"100%"}; block-size: ${({$h:e})=>e??"14px"}; border-radius: ${({$radius:e})=>e??"6px"}; background-color: ${F.border}; animation: ${ST} 1.2s ease-in-out infinite; `,_T=O.div` position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: ${F.alt}; pointer-events: none; `,Zu=O.div` display: flex; flex-direction: column; gap: ${W(2)}; `,Ei=O.div` display: flex; justify-content: space-between; align-items: center; gap: ${W(2)}; `,Qu=O.div` border: 1px solid ${F.border}; border-radius: 8px; padding: ${W(2)}; display: flex; gap: ${W(2)}; align-items: center; `,Mi=O.div` flex-grow: 1; display: flex; flex-direction: column; gap: ${W(1)}; `,Ju=O.hr` border: none; border-block-end: 1px solid ${F.border}; margin: 0; block-size: 0; `,am=()=>s.jsxs(I2,{"data-auto":"ssr-order-confirmation-widget",style:{position:"relative",minHeight:600},children:[s.jsxs(Zu,{children:[s.jsx(ve,{$w:"40%",$h:"24px"}),s.jsxs(Ei,{children:[s.jsx(ve,{$w:"110px",$h:"110px",$radius:"8px"}),s.jsxs(Mi,{children:[s.jsx(ve,{$w:"60%",$h:"16px"}),s.jsx(ve,{$w:"30%",$h:"14px"}),s.jsx(ve,{$w:"40%",$h:"14px"})]}),s.jsx(ve,{$w:"60px",$h:"16px"})]}),s.jsxs(Ei,{children:[s.jsx(ve,{$w:"110px",$h:"110px",$radius:"8px"}),s.jsxs(Mi,{children:[s.jsx(ve,{$w:"60%",$h:"16px"}),s.jsx(ve,{$w:"30%",$h:"14px"})]}),s.jsx(ve,{$w:"60px",$h:"16px"})]}),s.jsxs(Ei,{children:[s.jsx(ve,{$w:"30%",$h:"14px"}),s.jsx(ve,{$w:"15%",$h:"14px"})]}),s.jsxs(Ei,{children:[s.jsx(ve,{$w:"25%",$h:"14px"}),s.jsx(ve,{$w:"15%",$h:"14px"})]}),s.jsx(Ju,{}),s.jsxs(Ei,{children:[s.jsx(ve,{$w:"20%",$h:"18px"}),s.jsx(ve,{$w:"20%",$h:"18px"})]})]}),s.jsx(Ju,{}),s.jsxs(Zu,{children:[s.jsx(ve,{$w:"40%",$h:"24px"}),s.jsxs(Qu,{children:[s.jsx(ve,{$w:"22px",$h:"22px",$radius:"50%"}),s.jsx(Mi,{children:s.jsx(ve,{$w:"55%",$h:"14px"})})]})]}),s.jsx(Ju,{}),s.jsxs(Zu,{children:[s.jsx(ve,{$w:"40%",$h:"24px"}),s.jsxs(Qu,{children:[s.jsx(ve,{$w:"22px",$h:"22px",$radius:"50%"}),s.jsxs(Mi,{children:[s.jsx(ve,{$w:"40%",$h:"14px"}),s.jsx(ve,{$w:"75%",$h:"14px"})]})]}),s.jsxs(Qu,{children:[s.jsx(ve,{$w:"22px",$h:"22px",$radius:"50%"}),s.jsxs(Mi,{children:[s.jsx(ve,{$w:"40%",$h:"14px"}),s.jsx(ve,{$w:"60%",$h:"14px"})]})]})]}),s.jsx(_T,{children:s.jsx(z2,{size:32,thickness:3})})]}),OT="/404",kT=({layout:e="ONE_COLUMN",_orderState:t})=>{const{isInEditor:n}=Sc(),r=VM(),o=t??r,i=XM(),a=!n&&!t&&(o.status==="empty"||o.status==="error");return b.useEffect(()=>{a&&typeof window<"u"&&window.location.replace(OT)},[a]),n?i?s.jsx(im,{order:Xr,isRefreshing:!1,layout:e}):s.jsx(am,{}):o.status==="success"&&i?s.jsx(im,{order:o.order,isRefreshing:o.isRefreshing,layout:e}):s.jsx(am,{})},ET=_t({Comp:kT,logProps:!0,componentName:"OrderConfirmation",additionalInfoToLog:{tag:"native-ecom"}}),et={textFieldWrapperDataGrab:"product-customizations-text-field",labelDataGrab:"product-customizations-label",textAreaDataGrab:"product-customizations-text-field-textarea",textAreaPlaceholderDataGrab:"product-customizations-text-field-placeholder",counterDataGrab:"product-customizations-text-field-counter",checkboxWrapperDataGrab:"product-customizations-checkbox-wrapper",fileWrapperDataGrab:"product-customizations-file-wrapper",fileUploadDataGrab:"product-customizations-file-upload",choicesContainerDataGrab:"product-customizations-choices-container",choiceLabelDataGrab:"product-customizations-choice-label",choiceDataGrab:"product-customizations-choice",choiceCheckedDataGrab:"product-customizations-choice-checked",paidAddonTextDataGrab:"product-customizations-paid-addon-text"},MT=320;function jT({text:e,dataGrab:t,dataAuto:n="field-label",styles:r,required:o,...i}){return s.jsxs(Ka,{styles:[TT,r],"data-grab":t,"data-auto":n,...i,children:[e," ",o&&s.jsx(F2,{children:"*"})]})}const TT={[h.COMMON]:{textTransform:"capitalize",margin:0,boxSizing:"border-box"}},F2=O.span` color: #e33e3b; `,th=({styles:e,label:t,required:n,dataAuto:r,dataGrab:o,children:i})=>s.jsxs(Z,{tag:te.span,styles:AT,children:[s.jsxs(Z,{tag:te.span,styles:ae([NT,e]),"data-grab":o,"data-auto":r,children:[t,n&&s.jsx(F2,{children:"*"})]}),i]}),AT={[h.COMMON]:{display:"flex",justifyContent:"space-between",margin:0,width:"100%",direction:"inherit"}},NT={[h.COMMON]:{margin:0,width:"100%",color:"#000000"}},U2=({error:e,dataAuto:t="field-error",tag:n=te.paragraph,styles:r,...o})=>s.jsxs(Z,{"data-auto":t,tag:n,...o,styles:[IT,r],children:[s.jsx(d_,{size:16}),e]}),IT={[h.COMMON]:{display:"flex",alignItems:"center",gap:"6px",padding:"2px",color:"#DC1C1C",fontSize:"12px",margin:0}},nh=({error:e})=>s.jsx(U2,{error:e,styles:[PT]}),PT={[h.COMMON]:{borderRadius:"8px",opacity:1,padding:"6px 12px",gap:"4px",backgroundColor:"#FEF5F5",color:"#B00020",marginBlockStart:"8px",minHeight:"32px"}},LT=s.jsx("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",children:s.jsx("path",{d:"M1 3L3 5M3 5L7 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),RT=({onChange:e=()=>{},checked:t,disabled:n,name:r,dataAuto:o,styles:i,children:a,dataGrab:l,checkedDataGrab:c,labelDataGrab:u})=>{const f=ae([sm,i==null?void 0:i.checkbox,...t?[lm]:[]]),p=ae([sm,BT,i==null?void 0:i.checkbox,i==null?void 0:i.checkboxChecked,...t?[]:[lm]]),d={"data-checked":t,children:LT};return s.jsxs(Ka,{"data-auto":o,styles:ae([DT,i==null?void 0:i.checkboxRow]),children:[s.jsx(fi,{type:"checkbox",checked:t,disabled:n,name:r,onChange:e,styles:zT}),s.jsx(rt,{...d,"data-grab":c,styles:p}),s.jsx(rt,{...d,"data-grab":l,styles:f}),s.jsx(M,{"data-grab":u,styles:ae([$T,i==null?void 0:i.checkboxLabel]),children:a})]})},$T={[h.COMMON]:{flexGrow:1}},DT={[h.COMMON]:{position:"relative",display:"inline-flex",alignItems:"center",gap:"8px",cursor:"pointer"}},sm={[h.COMMON]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"14px",height:"14px",flexShrink:0,borderRadius:"3px",border:`1px solid ${Za.borderColor}`,boxSizing:"border-box",color:"transparent"}},BT={[h.COMMON]:{color:Za.primaryTextColor}},lm={[h.COMMON]:{display:"none"}},zT={[h.COMMON]:{opacity:0,position:"absolute",pointerEvents:"none"}},rh=({label:e,price:t,displayedPrice:n,styles:r})=>!t||t<=0||!n?s.jsx(s.Fragment,{children:e}):s.jsxs(s.Fragment,{children:[e,s.jsxs(FT,{"data-grab":et.paidAddonTextDataGrab,"data-auto":"product-customizations-paid-addon-text",styles:r,children:["+ ",n]})]}),FT=O(rt)` margin-inline-start: 8px; `,UT=({choices:e,value:t,styles:n,paidAddonTextStyles:r,onChange:o})=>s.jsx(M,{styles:ae([HT,n==null?void 0:n.choicesContainer]),"data-grab":et.choicesContainerDataGrab,children:e==null?void 0:e.map(i=>s.jsx(RT,{checked:t.includes(i.label),onChange:a=>o(i.label,a.target.checked),dataGrab:et.choiceDataGrab,labelDataGrab:et.choiceLabelDataGrab,checkedDataGrab:et.choiceCheckedDataGrab,dataAuto:`customization-choice-${i.label}`,styles:{checkboxRow:WT,checkbox:n==null?void 0:n.choice,checkboxChecked:n==null?void 0:n.choiceChecked,checkboxLabel:n==null?void 0:n.choiceLabel},children:s.jsx(rh,{label:i.label,price:i.price,displayedPrice:i.displayed_price,styles:r})},i.label))}),HT={[h.COMMON]:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gridTemplateRows:"repeat(auto-fill, minmax(24px, 1fr))",gap:"8px"},[h.MOBILE]:{gridTemplateColumns:"repeat(1, 1fr)"}},WT={[h.COMMON]:{display:"flex"}},VT=({id:e,label:t,mandatory:n=!1,choices:r,error:o,limitations:i,value:a=[],styles:l,onChange:c})=>{const u=b.useCallback((f,p)=>{p?c(e,[...a,f]):c(e,a.filter(d=>d!==f))},[c,e,a]);return s.jsxs(M,{"data-auto":"product-customizations-checkbox","data-grab":et.checkboxWrapperDataGrab,styles:l==null?void 0:l.checkboxWrapper,children:[s.jsx(th,{label:t,required:n,styles:ae([GT,l==null?void 0:l.label]),dataGrab:et.labelDataGrab,dataAuto:"product-customizations-checkbox-label"}),s.jsx(UT,{choices:r,limitations:i,value:a,paidAddonTextStyles:l==null?void 0:l.checkboxPaidAddonText,styles:{choicesContainer:l==null?void 0:l.choicesContainer,choiceChecked:l==null?void 0:l.choiceChecked,choice:l==null?void 0:l.choice,choiceLabel:l==null?void 0:l.choiceLabel},onChange:u}),!!o&&s.jsx(nh,{error:o})]})},GT={[h.COMMON]:{marginBlockEnd:"8px"}},KT=b.memo(VT),YT=["image/*","application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],qT=({id:e,label:t,mandatory:n=!1,price:r,displayed_price:o,error:i,styles:a,onChange:l,validateField:c,button_label:u,filestackConfig:f})=>{const p=b.useCallback(y=>{l(e,y.files),c(e)},[l,c,e]),d=a==null?void 0:a.uploadButton,g={button:{...d,root:ae([ZT,...u?[]:[QT],d==null?void 0:d.root]),rootHover:d==null?void 0:d.rootHover,rootDisabled:d==null?void 0:d.rootDisabled,text:ae([JT,d==null?void 0:d.text]),rootHoverText:d==null?void 0:d.rootHoverText,disabledText:d==null?void 0:d.disabledText,icon:ae([eA,d==null?void 0:d.icon]),rootHoverIcon:d==null?void 0:d.rootHoverIcon,iconDisabled:d==null?void 0:d.iconDisabled}};return s.jsxs(M,{"data-auto":"product-customizations-file","data-grab":et.fileWrapperDataGrab,styles:a==null?void 0:a.fileWrapper,children:[s.jsx(th,{label:s.jsx(rh,{label:t,price:r,displayedPrice:o,styles:a==null?void 0:a.filePaidAddonText}),required:n,styles:ae([XT,a==null?void 0:a.label]),dataGrab:et.labelDataGrab,dataAuto:"product-customizations-file-label"}),s.jsx(wa,{buttonText:u,onChange:p,styles:g,dataGrab:et.fileUploadDataGrab,dataAuto:`product-customizations-file-upload-${e}`,buttonClassName:"button_2",apiKey:f.apiKey,pickerOptions:{accept:YT,fromSources:[N2.LOCAL_FILE_SYSTEM],maxSize:1024*1024*10,disableAltText:!0,storeTo:{location:"S3",access:"public",container:f.storeContainer,path:f.storePath,region:f.storeRegion}}}),!!i&&s.jsx(nh,{error:i})]})},XT={[h.COMMON]:{marginBlockEnd:"8px"}},ZT={[h.COMMON]:{width:"min-content",height:"40px",borderRadius:"4px",borderWidth:"1px",paddingTop:"8px",padding:"8px 18px",backgroundColor:"var(--btn-bg-color)",borderColor:"var(--color_1);",margin:"0px",gap:"8px",direction:"ltr",backgroundImage:"none",boxShadow:"none",textAlign:"center"}},QT={[h.COMMON]:{gap:0}},JT={[h.COMMON]:{color:"var(--btn-text-color)",padding:"0px",fontSize:"14px",fontWeight:"normal",textDecoration:"none",fontStyle:"normal"}},eA={[h.COMMON]:{color:"var(--btn-icon-color)",display:"flex",width:"16px",height:"16px"}},tA=b.memo(qT),nA=O.textarea(({styles:e,increaseSpecificity:t})=>Kt([rA,e],t)),rA={[h.COMMON]:{padding:"unset",margin:"unset",backgroundColor:"unset",border:"1px solid #000000",color:"#000000",minHeight:"unset",height:"unset",fontSize:"unset",resize:"none"}},H2=({autosize:e,value:t,...n})=>{const r=b.useRef(null),o=b.useRef(null),i=b.useCallback(()=>{const a=r.current;if(a!==null){const l=(a==null?void 0:a.clientHeight)??null;o.current===null&&(o.current=l),a.style.height="auto";const c=a.scrollHeight,u=Math.max(o.current,c),f=Math.min(u,300);a.style.height=`${f}px`}},[]);return b.useEffect(()=>{e&&i()},[t,e]),s.jsx(nA,{ref:r,value:t,...n})},W2=({valueLength:e,maxLength:t,dataGrab:n,styles:r,dataAuto:o="char-counter",tag:i=te.paragraph})=>{const a=t!==void 0?`${e}/${t}`:`${e}`;return s.jsx(Z,{styles:[oA,r],"data-auto":o,"data-grab":n,tag:i,children:a})},oA={[h.COMMON]:{margin:0,boxSizing:"border-box"}},iA={[h.COMMON]:{boxSizing:"border-box"}},aA={[h.COMMON]:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",direction:"inherit",marginBlockEnd:"8px"}},V2={[h.COMMON]:{width:"100%",padding:"8px",height:"86px",boxSizing:"border-box",borderRadius:"3px",border:"1px solid rgba(201, 202, 205, 1)"}},sA={[h.COMMON]:{fontFamily:"Open Sans",fontSize:"11px",fontWeight:"400",lineHeight:"22px",color:"rgba(130, 136, 148, 1)"}},lA={[h.COMMON]:{marginBlockStart:"4px"}};function cA({name:e,id:t=e,value:n="",label:r="",error:o=null,showCounter:i=!1,styles:a,dataGrabs:l,dataAuto:c="text-field",onChange:u,labelElement:f,charCounterElement:p,textareaElement:d,fieldErrorElement:g,...y}){const C=ae([sA,a==null?void 0:a.placeholder]),_=S=>{u==null||u(S.target.value,S)},x=r&&(f||s.jsx(jT,{text:r,styles:a==null?void 0:a.label,htmlFor:t,required:y.required,dataGrab:l==null?void 0:l.labelDataGrab})),m=i&&(p||s.jsx(W2,{valueLength:n.length,maxLength:y.maxLength,dataGrab:l==null?void 0:l.counterDataGrab,styles:a==null?void 0:a.counter,dataAuto:`${c}-counter`})),v=d||s.jsx(H2,{id:t,name:e,value:n,"data-grab":l==null?void 0:l.textareaDataGrab,styles:[V2,a==null?void 0:a.textarea,Be(C,{innerSelector:"&::placeholder"})],increaseSpecificity:!0,onChange:_,...y}),w=g||s.jsx(U2,{error:o,styles:[lA,a==null?void 0:a.fieldError]});return s.jsxs(M,{"data-auto":c,styles:[iA,a==null?void 0:a.textFieldWrapper],"data-grab":l==null?void 0:l.textFieldWrapperDataGrab,children:[s.jsxs(M,{styles:aA,children:[x,m]}),v,!!o&&w]})}const uA=({styles:e,label:t,required:n,price:r,displayedPrice:o,valueLength:i,maxLength:a})=>s.jsx(th,{label:s.jsx(rh,{label:t,price:r,displayedPrice:o,styles:e.paidAddonText}),required:n,styles:e.inputLabel,dataGrab:et.labelDataGrab,dataAuto:"product-customizations-text-field-label",children:s.jsx(W2,{valueLength:i,maxLength:a,tag:te.span,styles:e.inputCharacterCounter,dataGrab:et.counterDataGrab,dataAuto:"product-customizations-text-field-counter"})}),dA=e=>{const{styles:t,error:n,placeholder:r,value:o}=e,{textareaStyles:i,placeholderStyles:a}=b.useMemo(()=>{const l=ae([V2,n?pA:{},Be({[h.COMMON]:{opacity:0}},{innerSelector:"&::placeholder"}),t==null?void 0:t.textArea,hA]);return{textareaStyles:l,placeholderStyles:ae([PC(l,gA),mA,t==null?void 0:t.placeholder])}},[t==null?void 0:t.textArea,t==null?void 0:t.placeholder,n]);return s.jsxs(fA,{className:"dmNewParagraph",children:[s.jsx(H2,{rows:1,autosize:!0,...e,styles:i}),!o&&s.jsx(Z,{styles:a,"data-grab":et.textAreaPlaceholderDataGrab,tag:te.paragraph,children:r})]})},fA=O.div` height: auto; min-height: 40px; position: relative; margin: 0; padding: 0; `,pA={[h.COMMON]:{borderColor:"#E33E3B"}},uo={position:"absolute",top:0,bottom:0,left:0,right:0,height:"40px",boxSizing:"border-box",pointerEvents:"none",margin:0,borderColor:"transparent",overflow:"hidden",color:"rgba(201, 202, 205, 1)"},hA={[h.COMMON]:{boxSizing:"border-box",height:"40px"}},mA={[h.COMMON]:uo,[h.MOBILE]:uo,[h.TABLET]:uo,[h.DESKTOP]:uo,[h.MOBILE_IMPLICIT]:uo,[h.TABLET_IMPLICIT]:uo},gA=new Set(["border","borderWidth","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingInline","paddingBlock","paddingInlineStart","paddingInlineEnd","paddingBlockStart","paddingBlockEnd"]),vA=({id:e,label:t,hint:n,title:r,value:o="",mandatory:i=!1,maxLength:a=MT,price:l,displayed_price:c,styles:u,error:f,onChange:p,validateField:d})=>{const g=C=>{p(e,C.target.value)},y=()=>{d(e)};return s.jsx(cA,{label:t,placeholder:n,error:f,styles:{label:u==null?void 0:u.label,counter:u==null?void 0:u.inputCharacterCounter},dataAuto:"product-customizations-text-field",dataGrabs:et,labelElement:s.jsx(uA,{styles:{inputLabel:u==null?void 0:u.label,inputCharacterCounter:u==null?void 0:u.inputCharacterCounter,paidAddonText:u==null?void 0:u.textFieldPaidAddonText},required:i,label:t,price:l,displayedPrice:c,valueLength:o.length,maxLength:a}),textareaElement:s.jsx(dA,{name:r,id:e,value:o,placeholder:n,required:i,maxLength:a,error:!!f,onBlur:y,styles:{textArea:u==null?void 0:u.input,placeholder:u==null?void 0:u.inputPlaceholder},"data-grab":et==null?void 0:et.textAreaDataGrab,increaseSpecificity:!0,onChange:g}),fieldErrorElement:!!f&&s.jsx(nh,{error:f})})},xA=b.memo(vA),bA=({customizationsState:e,customization:t,styles:n,filestackConfig:r})=>{switch(t.type){case rn.FILE:return ht.getBoolean("runtime.ssr.file.customizations")?b.createElement(tA,{...t,key:t.id,styles:n,error:e.errors[t.id],onChange:e.updateValue,validateField:e.validate,filestackConfig:r}):null;case rn.TEXT:return b.createElement(xA,{...t,key:t.id,styles:n,value:e.values[t.id],error:e.errors[t.id],onChange:e.updateValue,validateField:e.validate});case rn.CHECKBOX:return b.createElement(KT,{...t,key:t.id,styles:n,value:e.values[t.id],error:e.errors[t.id],onChange:e.updateValue,validateField:e.validate});default:return null}},yA=kp(bA),{str:CA}=fe,wA=({productState:e,_styles:t,filestackConfig:n})=>{const r=e.customizations;return r.isEmpty()?$e.isEditor?s.jsx(M,{"data-auto":"product-customizations-placeholder",styles:_A,children:CA("ui.runtimessr.productCustomizations.noCustomizations")}):s.jsx("div",{}):s.jsx(M,{styles:[SA,t==null?void 0:t.wrapper],"data-auto":"product-customizations","data-grab":"product-customizations",children:r.list.map(o=>s.jsx(yA,{filestackConfig:n,customizationsState:r,customization:o,styles:t},o.id))})},SA={[h.COMMON]:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",color:"#000000"}},_A={[h.COMMON]:{color:"#000000"}},OA=_t({Comp:qa(wA),componentName:"ProductCustomizations",logProps:!0}),{str:Er}=fe,kA=({option:e,styles:t})=>{const{id:n,name:r,tag_line:o,frequency:i,expiration_count:a,interval:l,plan_displayed_price:c}=e,u=a&&l&&a*l;return s.jsxs(s.Fragment,{children:[s.jsx(Z,{tag:te.h4,"data-grab":"price-name",styles:[EA,t==null?void 0:t.name],children:r}),o&&s.jsx(Z,{tag:te.h6,"data-grab":"price-tagLine",styles:[MA,t==null?void 0:t.tagLine],children:o}),s.jsxs(M,{children:[s.jsxs(Z,{tag:te.h4,"data-grab":"price-and-frequency",styles:[jA,t==null?void 0:t.priceAndFrequency],children:[c,i&&s.jsxs(s.Fragment,{children:[" ","/"," ",l&&l>1?s.jsxs(s.Fragment,{children:[l," ",Er(`ui.runtimessr.productPriceOptions.frequencyPlural.${i.toLowerCase()}`)]}):s.jsx(s.Fragment,{children:Er(`ui.runtimessr.productPriceOptions.frequency.${i.toLowerCase()}`)})]})]}),n!==pa&&s.jsx(Z,{tag:te.h6,"data-grab":"expiration",styles:[TA,t==null?void 0:t.expiration],children:u&&i?s.jsxs(s.Fragment,{children:[Er("ui.runtimessr.productPriceOptions.expiresAfter")," ",u," ",Er(`ui.runtimessr.productPriceOptions.frequency${u>1?"Plural":""}.${i.toLowerCase()}`)]}):Er("ui.runtimessr.productPriceOptions.autoRenew")}),!!e.tax_percentage&&s.jsxs(M,{styles:AA,"data-auto":"price-vat",children:[s.jsx(Z,{"data-auto":"vat-msg",children:Er("ui.runtimessr.productPrice.omnibus.vat",{vatPercentage:e.tax_percentage.toString()})}),s.jsx(Z,{"data-auto":"vat-desc",children:Er("ui.runtimessr.productPrice.omnibus.total.price.might.change")})]})]})]})},EA={[h.COMMON]:{paddingBlockEnd:4,margin:0}},MA={[h.COMMON]:{paddingBlockEnd:8,margin:0}},jA={[h.COMMON]:{paddingInlineEnd:8,margin:0,display:"inline"}},TA={[h.COMMON]:{margin:0,display:"inline"}},AA={[h.COMMON]:{fontSize:"13px",margin:"0",color:"#939393",lineHeight:"15px"}},NA=({productState:e,_styles:t})=>!e||!e.paymentPlanOptions.length?null:s.jsxs(M,{"data-auto":"price-options-widget",children:[s.jsx(Z,{styles:[IA,t==null?void 0:t.title],tag:te.h4,grabId:"price-options-title",children:fe.str("ui.runtimessr.productPriceOptions.title")}),s.jsx(M,{styles:PA,children:e.paymentPlanOptions.map(n=>{var r;return s.jsx(Fp,{"data-grab":"price-option","data-auto":"price-option",value:n.id,selectedValue:((r=e.selectedPaymentPlan)==null?void 0:r.id)||"",label:s.jsx(kA,{option:n,styles:t}),labelTag:te.div,onChange:()=>{e.selectPaymentPlanOption(n)},labelWrapperStyles:[LA,t==null?void 0:t.option],labelStyles:RA,inputStyles:t==null?void 0:t.input,inputIconStyles:t==null?void 0:t.inputIcon},n.id)})})]}),IA={[h.COMMON]:{paddingBottom:8,margin:0}},PA={[h.COMMON]:{display:"flex",flexFlow:"column",gap:16}},LA={[h.COMMON]:{border:"1px solid #CED6D9",borderRadius:3,padding:16,minHeight:67,gap:16}},RA={[h.COMMON]:{display:"block",textTransform:"none"}},$A=_t({Comp:qa(NA),componentName:"RuntimeProductPriceOptions",logProps:!0}),{str:DA}=fe;function BA({productState:e,styles:t}){var a;const n=e.selectedVariation||e.productData.variations[0],r=n==null?void 0:n.lowest_prices;if(!r)return null;const o=((a=e.selectedPaymentPlan)==null?void 0:a.id)||pa,i=r.find(l=>(l.plan_id||pa)===o);return s.jsx(M,{styles:t,"data-grab":"product-lowest-price","data-auto":"product-lowest-price",children:i&&s.jsx(Z,{tag:te.paragraph,"data-auto":`low_price_${i.displayed_price}`,styles:zA,children:DA("ui.runtimessr.productPrice.omnibus.last.price",{period:i.period.toString(),displayedPrice:i.displayed_price})})})}const zA={[h.COMMON]:{margin:0}},{str:cm}=fe;function FA({productState:e,styles:t}){var i,a;const n=e.selectedVariation||e.productData.variations[0],r=(i=n==null?void 0:n.tax_percentage)==null?void 0:i.toString();return((a=e.productData.is_tax_included)==null?void 0:a.toString())==="true"&&r?s.jsxs(M,{styles:[t,UA],"data-auto":"price-vat",children:[s.jsx(Z,{"data-auto":"vat-msg",children:cm("ui.runtimessr.productPrice.omnibus.vat",{vatPercentage:r})}),s.jsx(Z,{"data-auto":"vat-desc",children:cm("ui.runtimessr.productPrice.omnibus.total.price.might.change")})]}):null}const UA={[h.COMMON]:{marginBlockEnd:"8px"}},HA=({_styles:e,productState:t})=>{var i;const n=t==null?void 0:t.productData;if(!n)return null;const r=(i=t.selectedPaymentPlan)==null?void 0:i.frequency,o=n.displayed_compare_at;return s.jsxs(M,{"data-auto":"product-price-widget","data-grab":"product-price-frame",styles:e==null?void 0:e.frame,children:[s.jsx(Z,{tag:te.h4,"data-grab":"product-compare-at-price",styles:[o?VA:WA,e==null?void 0:e.compareAtPrice],children:s.jsx(rt,{styles:GA,children:n.displayed_compare_at})}),s.jsx(Z,{tag:te.h4,"data-grab":"product-price",styles:[KA,e==null?void 0:e.price],children:n.displayed_price}),s.jsx(Z,{tag:te.h4,"data-grab":"product-frequency",styles:[YA,e==null?void 0:e.frequency],children:r&&s.jsxs(s.Fragment,{children:["/",fe.str(`ui.runtimessr.productPriceOptions.frequency.${r.toLowerCase()}`)]})}),s.jsx(FA,{productState:t,styles:[e==null?void 0:e.compareAtPrice,um]}),o&&s.jsx(BA,{productState:t,styles:[e==null?void 0:e.compareAtPrice,um]})]})},WA={[h.COMMON]:{display:"none"}},VA={[h.COMMON]:{display:"inline",paddingRight:8,margin:0}},GA={[h.COMMON]:{textDecoration:"line-through"}},KA={[h.COMMON]:{display:"inline",margin:0}},YA={[h.COMMON]:{display:"inline",margin:0}},um={[h.COMMON]:{fontSize:"13px",margin:0},[h.DESKTOP]:{fontSize:"13px",margin:0}},qA=_t({Comp:qa(HA),componentName:"RuntimeProductPrice",additionalInfoToLog:{tag:"native-ecom"}});var G2=(e=>(e.Slide="slide",e.Fade="fade",e))(G2||{});const ke={LAYOUT_1:"LAYOUT_1",LAYOUT_2:"LAYOUT_2",LAYOUT_3:"LAYOUT_3",LAYOUT_4:"LAYOUT_4",LAYOUT_5:"LAYOUT_5",LAYOUT_6:"LAYOUT_6",LAYOUT_3_B:"LAYOUT_3_B"};function XA(e){return e?Object.values(e).some(t=>t!=null):!1}const ZA=e=>{const t=[QA,e.styles];return XA(e.linkFunctionalityDomAttributes)?s.jsx(k6,{...e,linkFunctionalityDomAttributes:e.linkFunctionalityDomAttributes,styles:t}):s.jsx(M,{...e,styles:t})},QA={[h.COMMON]:{width:"100%",height:"100%",position:"relative",display:"block",overflow:"hidden"}};var Pi=(e=>(e.AS_ELEMENT="AS_ELEMENT",e.BACKGROUND="BACKGROUND",e.AS_CONTENT_ELEMENT="AS_CONTENT_ELEMENT",e))(Pi||{});const JA=e=>{var m;const{styles:t,imageLayout:n="BACKGROUND",uuid:r,title:o,desc:i,button:a,media:l,linkDomAttributes:c,showButton:u,contentAnimationTypeCssClass:f,contentAnimationMode:p,imgCssObjectPositionValue:d,showButtonHoverEffect:g,onContentAnimationCompleted:y,outOFViewPort:C}=e,_=!f||f==="none"?"off":p??"off";if(!(l||o||i||c))return s.jsx(Dp,{});const x=s.jsxs(M,{"data-grab":"slide-media-container",styles:[pn.mediaContainer,n==="BACKGROUND"&&pn.mediaContainerBg,t==null?void 0:t.mediaContainer],children:[l&&s.jsx(M6,{isHidden:C,dataGrab:"slide-media",styles:[pn.media,n==="BACKGROUND"&&pn.imageBg,{common:{objectPosition:d}},t==null?void 0:t.media],...l}),l&&s.jsx(M,{"data-grab":"slide-overlay",styles:[pn.imgOverlay,t==null?void 0:t.overlay]})]});return s.jsxs(ZA,{styles:t==null?void 0:t.container,linkFunctionalityDomAttributes:!u&&e.linkDomAttributes,"data-auto":`ssr-slide-${r}`,children:[n!=="AS_CONTENT_ELEMENT"&&x,s.jsxs(M,{className:`${_==="anim-active"?["animated",f].join(" "):""} d-ext-mediaSlider-slide__contentContainer`,"data-grab":"slideContentContainer",styles:[pn.contentContainer,t==null?void 0:t.contentContainer,{common:{visibility:_==="anim-idle"?"hidden":"visible"}}],onAnimationEnd:y,children:[n==="AS_CONTENT_ELEMENT"&&x,o&&s.jsx(Z,{grabId:"title",styles:[pn.title,t==null?void 0:t.title],tag:te.h3,className:"d-ext-mediaSlider-contentContainer__title",children:o}),i&&s.jsx(Z,{className:"d-ext-mediaSlider-contentContainer__description",grabId:"description","data-auto":"desc",styles:[Be(pn.descOverrides,{innerSelector:"p"}),pn.descContainer,t==null?void 0:t.desc],tag:te.div,domAttrs:{dangerouslySetInnerHTML:{__html:i}}}),u&&a&&s.jsx(Ya,{styles:{...(t==null?void 0:t.button)??{},root:[pn.buttonContainer,(m=t==null?void 0:t.button)==null?void 0:m.root]},linkFunctionalityDomAttributes:c,buttonContent:a,showHoverEffect:g,className:"d-ext-mediaSlider-contentContainer__button"})]})]})},pn={mediaContainer:{common:{backgroundColor:"#eee",overflow:"hidden",position:"relative"}},mediaContainerBg:{common:{position:"absolute",left:0,bottom:0,top:0,right:0}},imageBg:{common:{width:"100%",height:"100%"}},media:{common:{objectFit:"cover",objectPosition:"center",display:"block",width:"100%",height:"100%"}},imgOverlay:{common:{position:"absolute",top:0,bottom:0,left:0,right:0}},contentElement:{common:{margin:0}},descOverrides:{common:{marginBlock:0}},descContainer:{common:{marginBlockEnd:24}},buttonContainer:{common:{minWidth:150,width:"auto",paddingInlineStart:20,paddingInlineEnd:20,margin:0}},contentContainer:{common:{display:"flex",visibility:"visible"}},title:{common:{margin:0,marginBlockEnd:8}}},Jl=_t({Comp:JA,componentName:"SlideContent"}),dm="#e1e3e7",ed="rgba(0,0,0,0.3)",Ps="#CED6D9",eN=()=>{const e=ht.getBoolean("runtime.ssr.slider.image.fillAvailableSpace.enabled",!1);return{[ke.LAYOUT_1]:{styles:{container:{[h.COMMON]:{width:"100%"}},slide_container:{[h.COMMON]:{width:"100%"}},slide_overlay:{[h.COMMON]:{backgroundColor:ed}},slide_contentContainer:{[h.COMMON]:{position:"absolute",left:0,bottom:35,paddingBlockStart:35,paddingInline:24,top:60,right:0,alignItems:"center",flexDirection:"column",justifyContent:"center",textAlign:"center"},[h.MOBILE]:{top:0}},slide_title:{[h.COMMON]:{color:"white"}},slide_desc:{[h.COMMON]:{color:"white"}},pagination_container:{[h.COMMON]:{position:"absolute",bottom:24,width:"100%"}},pagination_buttonBullet:{[h.COMMON]:{backgroundColor:Ps}},pagination_buttonBulletActive:{[h.COMMON]:{backgroundColor:"currentColor",color:"white"}},pagination_buttonArrow:{[h.COMMON]:{color:"white"}}}},[ke.LAYOUT_2]:{paginationType:on.ARROWS,defaultSlotsInFrame:3,styles:{container:{[h.COMMON]:{paddingInline:59,position:"relative"},[h.MOBILE]:{paddingInline:15}},slidesContainer:{[h.MOBILE]:{height:"100%"}},slide_mediaContainer:{[h.COMMON]:{borderRadius:16}},slide_overlay:{[h.COMMON]:{backgroundColor:ed}},slide_contentContainer:{[h.COMMON]:{position:"absolute",left:0,bottom:30,right:0,alignItems:"center",flexDirection:"column",textAlign:"center",paddingBlockStart:30,paddingInline:24}},slide_title:{[h.COMMON]:{color:"white"}},slide_desc:{[h.COMMON]:{color:"white"}},pagination_container:{[h.COMMON]:{position:"absolute",left:0,right:0,bottom:0,top:0}},pagination_buttonArrow:{[h.COMMON]:{color:"black"}},pagination_buttonBullet:{[h.COMMON]:{backgroundColor:Ps}},pagination_buttonBulletActive:{[h.COMMON]:{backgroundColor:"currentColor",color:"black"}}}},[ke.LAYOUT_3]:{paginationType:on.ARROWS,imageLayout:Pi.AS_ELEMENT,styles:{container:{[h.COMMON]:{paddingInline:45,position:"relative"},[h.MOBILE]:{paddingInline:0,position:"relative"}},slide_container:{[h.COMMON]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-around"}},slide_mediaContainer:{[h.COMMON]:{borderRadius:"50%",aspectRatio:"1/1",flexBasis:"39%"}},slide_contentContainer:{[h.COMMON]:{flexDirection:"column",justifyContent:"center",alignItems:"center",textAlign:"center",paddingInline:32}},pagination_container:{[h.COMMON]:{position:"absolute",left:28,right:28,bottom:0,top:0},[h.MOBILE]:{left:0,right:0}},pagination_buttonBullet:{[h.COMMON]:{backgroundColor:Ps}},pagination_buttonBulletActive:{[h.COMMON]:{backgroundColor:"currentColor",color:"black"}}}},[ke.LAYOUT_3_B]:{paginationType:on.ARROWS,imageLayout:Pi.AS_CONTENT_ELEMENT,styles:{container:{[h.COMMON]:{paddingInline:45,position:"relative",paddingTop:32},[h.MOBILE]:{paddingInline:0,position:"relative"}},slide_mediaContainer:{[h.COMMON]:{borderRadius:"50%",aspectRatio:"1/1",position:"relative",flexBasis:"39%",flexShrink:0,order:-1,":empty":{display:"none"},marginBottom:32}},slide_media:{[h.COMMON]:{position:"absolute",bottom:0,top:0,left:0,right:0}},slide_contentContainer:{[h.COMMON]:{flexDirection:"column",alignItems:"center",textAlign:"center",paddingInline:32,height:"100%",justifyContent:"start"}},slide_title:{common:{marginBottom:0}},pagination_container:{[h.COMMON]:{position:"absolute",left:28,right:28,bottom:0,top:0},[h.MOBILE]:{left:0,right:0}},slide_button:{root:{[h.COMMON]:{marginTop:0}}},pagination_buttonBullet:{[h.COMMON]:{backgroundColor:Ps}},pagination_buttonBulletActive:{[h.COMMON]:{backgroundColor:"currentColor",color:"black"}}}},[ke.LAYOUT_4]:{paginationType:on.THUMBS,strictSlotsInFrame:1,styles:{container:{[h.COMMON]:{display:"flex",flexDirection:"column",gap:20,alignItems:"stretch"}},slide_overlay:{[h.COMMON]:{backgroundColor:ed}},slide_contentContainer:{[h.COMMON]:{position:"absolute",left:0,bottom:0,top:0,right:0,alignItems:"center",flexDirection:"column",justifyContent:"center",padding:20,textAlign:"center"}},slide_title:{[h.COMMON]:{color:"white"}},slide_desc:{[h.COMMON]:{color:"white"}},pagination_thumbsContainer:{[h.MOBILE]:{overflowX:"auto",justifyContent:"start"}},pagination_buttonThumb:{[h.COMMON]:{flexBasis:80,flexGrow:0,flexShrink:1,width:"revert",borderWidth:4,backgroundOrigin:"border-box"},[h.MOBILE]:{flexBasis:80,flexShrink:0}},pagination_buttonThumbActive:{[h.COMMON]:{borderColor:"#000"}},pagination_buttonArrow:{[h.COMMON]:{color:"white"}}}},[ke.LAYOUT_5]:{imageLayout:Pi.AS_ELEMENT,defaultSlotsInFrame:3,styles:{slide_mediaContainer:{[h.COMMON]:{...e?{flex:1}:{height:"46%",minHeight:"46%"},borderRadius:16,marginBlockEnd:24}},slide_contentContainer:{[h.COMMON]:{flexDirection:"column",justifyContent:"flex-start",textAlign:"center",alignItems:"center"},[h.MOBILE]:{alignItems:"center",textAlign:"center",paddingBlock:0,paddingInline:24}},container:{[h.COMMON]:{display:"flex",flexDirection:"column"}},...e&&{slide_container:{[h.COMMON]:{display:"flex",flexDirection:"column"}},slidesContainer:{[h.COMMON]:{paddingBlockEnd:56}}},slide_media:{[h.COMMON]:{width:"100%"}},pagination_buttonBullet:{[h.COMMON]:{backgroundColor:dm}},pagination_buttonBulletActive:{[h.COMMON]:{backgroundColor:"currentColor",color:"black"}},pagination_container:{[h.COMMON]:{marginBlockEnd:24,position:"absolute",width:"100%",bottom:0}},pagination_buttonArrow:{[h.COMMON]:{color:"black"}}}},[ke.LAYOUT_6]:{imageLayout:Pi.AS_ELEMENT,slideAnimationDirection:"vertical",strictSlotsInFrame:1,styles:{container:{[h.COMMON]:{display:"flex",flexDirection:"row-reverse",gap:24},[h.MOBILE]:{flexDirection:"column"}},pagination_container:{[h.COMMON]:{order:0,flexDirection:"column",paddingInlineStart:2},[h.MOBILE]:{flexDirection:"row",paddingInlineStart:0,paddingBlockEnd:2}},pagination_buttonBullet:{[h.COMMON]:{backgroundColor:dm}},pagination_buttonBulletActive:{[h.COMMON]:{backgroundColor:"currentColor",color:"black"}},slidesContainer:{[h.COMMON]:{flexGrow:1}},slide_container:{[h.COMMON]:{display:"flex",gap:32},[h.MOBILE]:{flexDirection:"column",gap:24}},slide_contentContainer:{[h.COMMON]:{paddingBlock:24,flexDirection:"column",width:"61%",justifyContent:"center",alignItems:"flex-start",textAlign:"left"},[h.MOBILE]:{width:"auto",alignItems:"center",textAlign:"center",flex:"revert",paddingBlock:0,paddingInline:24}},slide_mediaContainer:{[h.COMMON]:{width:"37%",borderRadius:16},[h.MOBILE]:{width:"auto",flex:"revert",flexBasis:"55%"}}}}}},tN={[on.ARROWS]:{[ke.LAYOUT_1]:{styles:{pagination_container:{[h.COMMON]:{position:"absolute",left:0,right:0,bottom:0,top:0}}}},[ke.LAYOUT_2]:{styles:{container:{[h.MOBILE]:{paddingInline:48}},slidesContainer:{[h.MOBILE]:{overflow:"hidden"}},pagination_buttonArrow:{[h.COMMON]:{padding:16},[h.MOBILE]:{padding:16}}}},[ke.LAYOUT_3]:{styles:{pagination_buttonArrow:{[h.COMMON]:{padding:16}}}},[ke.LAYOUT_3_B]:{styles:{pagination_buttonArrow:{[h.COMMON]:{padding:16}}}},[ke.LAYOUT_5]:{styles:{container:{[h.COMMON]:{paddingInline:59,position:"relative",display:"block"},[h.MOBILE]:{paddingInline:50,display:"block"}},slidesContainer:{[h.MOBILE]:{overflow:"hidden"}},slide_mediaContainer:{[h.COMMON]:{height:"57%",minHeight:"57%"},[h.MOBILE]:{height:"59.4%",minHeight:"59.4%"}},pagination_container:{[h.COMMON]:{position:"absolute",left:0,right:0,bottom:0,top:0}},pagination_buttonArrow:{[h.COMMON]:{paddingInline:16}}}},[ke.LAYOUT_6]:{styles:{container:{[h.COMMON]:{display:"flex",flexDirection:"row-reverse",gap:24},[h.MOBILE]:{paddingInline:50,display:"block"}},pagination_container:{[h.COMMON]:{order:0,flexDirection:"column",paddingInlineStart:2},[h.MOBILE]:{position:"absolute",left:0,right:0,top:83}},pagination_buttonArrow:{[h.COMMON]:{transform:"rotate(90deg)"},[h.MOBILE]:{transform:"rotate(0)"}}}}},[on.BULLETS]:{[ke.LAYOUT_2]:{styles:{container:{[h.COMMON]:{paddingInline:0,position:"relative"},[h.MOBILE]:{paddingInline:0}},pagination_container:{[h.COMMON]:{position:"absolute",bottom:24,width:"100%",top:"auto"}},slidesContainer:{[h.COMMON]:{height:"87%"},[h.MOBILE]:{height:"87%"}}}},[ke.LAYOUT_3]:{styles:{container:{[h.COMMON]:{paddingInline:0,position:"relative"},[h.MOBILE]:{paddingInline:0}},pagination_container:{[h.COMMON]:{position:"absolute",bottom:24,left:0,right:0,width:"100%",top:"auto"}}}},[ke.LAYOUT_3_B]:{styles:{container:{[h.COMMON]:{paddingTop:0},[h.MOBILE]:{}},pagination_container:{[h.COMMON]:{position:"absolute",bottom:24,width:"100%",top:"auto",left:0,right:0}}}}},[on.ARROWS_AND_THUMBS]:{[ke.LAYOUT_4]:{styles:{container:{[h.COMMON]:{'& > [data-auto="pagination-arrows"]':{position:"absolute",left:0,right:0,bottom:0,top:-106}}}}}}},nN=()=>ht.getBoolean("runtime.ssr.ssrSlider.multiplePaginationPerLayout.enabled",!1)?tN:{},rN="https://static-cdn.multiscreensite.com",oN=({slidesData:e})=>{const{elementRef:t,isVisible:n}=b2();return s.jsx(M,{ref:t,styles:{common:{position:"absolute"}},children:s.jsx(M,{styles:iN,children:n&&e.map(r=>{var o;return((o=r.media)==null?void 0:o.imgSrc)&&s.jsx(ma,{src:r.media.imgSrc},r.uuid)})})})},iN={[h.COMMON]:{display:"none"}},aN=({onAnimationEnd:e,isTransitioning:t,currentSlideData:n,previousSlideData:r,slideProps:o,shouldAnimateContent:i,styles:a})=>{const l=i?t?"anim-idle":"anim-active":"off";return s.jsxs(M,{styles:[{[h.COMMON]:{position:"relative"}},a],children:[t&&s.jsx(M,{styles:[fm,lN],children:s.jsx(Jl,{...o,...r})},r.uuid),s.jsx(M,{"data-auto":"slideSlot",styles:[fm,sN],onAnimationEnd:e,className:"d-ext-mediaSlider-slidesContainer__slide",children:s.jsx(Jl,{contentAnimationMode:l,...o,...n})},n.uuid)]})},fm={[h.COMMON]:{position:"absolute",left:0,right:0,top:0,bottom:0}},sN={[h.COMMON]:{animationName:"fadeIn",animationDuration:"1s",opacity:1,animationTimingFunction:"ease-in"}},lN={[h.COMMON]:{opacity:0,transition:"opacity 1s ease-in"}},fr={getContainer:e=>({[h.COMMON]:{width:"100%",height:"100%"},[h.MOBILE]:e<3?{}:{position:"absolute",left:"-75%",width:"250%"}}),filmRole:{[h.COMMON]:{display:"flex"}},slotParent:{[h.COMMON]:{flex:"1",position:"relative"}},getSlideSlot:e=>{const t=e>1,n=t?"3%":0,r=t?"2%":0;return{[h.COMMON]:{position:"absolute",top:0,bottom:0,left:n,right:n},[h.MOBILE]:{left:r,right:r}}}},cN=e=>{const t=ht.getBoolean("runtime.ssr.slider.image.fillAvailableSpace.enabled",!1);return{[on.BULLETS]:{[ke.LAYOUT_2]:{container:{[h.MOBILE]:e<3?{}:{position:"relative"}}},...t&&{[ke.LAYOUT_5]:{container:{[h.MOBILE]:{position:"relative"}}}}},[on.ARROWS]:{[ke.LAYOUT_2]:{container:{[h.MOBILE]:{width:`${100*e}%`,height:"100%",position:"relative",left:"unset"}}},[ke.LAYOUT_5]:{container:{[h.MOBILE]:{width:`${100*e}%`,height:"100%",position:"relative",left:"unset"}}}}}},oh=({paginationType:e,slotsInFrame:t,layout:n})=>{var o,i;return!ht.getBoolean("runtime.ssr.ssrSlider.multiplePaginationPerLayout.enabled",!1)||!e?{}:(i=(o=cN(t))==null?void 0:o[e])==null?void 0:i[n]};function uN(e,t){return(e%t+t)%t}function dN(){const e=b.useRef(!0);return e.current?(e.current=!1,!0):e.current}function fN(e,t){const n=dN();b.useEffect(()=>{if(!n)return e()},t)}function K2(e){return new Array(e).fill(null)}function pm(e,t,n){return K2(t).map((r,o)=>uN(e+o,n))}function pN(){const[e,t]=b.useState(!1),n=b.useRef(!1);function r(o){t(o),n.current=o}return{isTransitiongRef:n,isTransitioning:e,setIsTransitioning:r}}const hm=({slideAnimationProps:{cursor:e,newEnters:t,slotsInFrame:n,layout:r,paginationType:o},slideProps:i,slidesData:a})=>{const[l,c]=b.useState(e),[u,f]=b.useState(e),{isTransitiongRef:p,isTransitioning:d,setIsTransitioning:g}=pN();fN(()=>{g(!0),c(e),f(l)},[e]);const y=pm(l,n,a.length),C=pm(u,n,a.length),_=K2(n),x=oh({paginationType:o,layout:r,slotsInFrame:n});return s.jsxs(M,{styles:[fr.getContainer(n),fr.filmRole,{common:{gap:"2%"},mobile:{gap:"1.25%"}},x==null?void 0:x.container],"data-auto":"fade-wrapper",children:[_.map((m,v)=>{const w=y[v],S=C[v],E=t>0&&vt;return s.jsx(aN,{currentSlideData:a[w],previousSlideData:a[S],shouldAnimateContent:E,onAnimationEnd:()=>{p.current&&g(!1)},slideProps:i,isTransitioning:d,styles:[{common:{flex:"1"}},hN(v,n)]},v)}),s.jsx(oN,{slidesData:a})]})};function hN(e,t){const n=t>2?3:1;return e{const c=ht.getBoolean("runtime.ssr.slider.alternative.animation.to.reduce.cls.enabled",!1),u=n==="horizontal";let f,p,d;f=[...l];for(let $=0;$d+Q),[S,E]=b.useState(w),j=oh({paginationType:o,layout:r,slotsInFrame:e}),T=i?"0.01ms":"1s",z={[h.COMMON]:{position:"absolute",left:0,top:0,flexDirection:u?"row":"column",...c?{right:u?x:0,bottom:u?0:x,transform:`translate${u?"X":"Y"}(-${v}%)`,transition:`transform ${T} ease-in-out`}:{right:0,bottom:0,[_]:C,[m]:x,transition:"left, top, right, bottom",transitionDuration:T,transitionTimingFunction:"ease-in-out"}}};return s.jsx(M,{styles:[fr.getContainer(e),{[h.COMMON]:{position:"relative",overflow:"hidden"},[h.MOBILE]:{width:e<3?`${100*e}%`:`${250/3*e}%`}},j==null?void 0:j.container],children:s.jsx(M,{styles:[fr.filmRole,z],onTransitionEnd:()=>E(w),"data-auto":"slider-filmRole",children:f.map(($,Q)=>s.jsx(M,{styles:[{[h.COMMON]:{position:"relative",flex:1}}],"data-auto":`slideSlot ${Q}${p===Q?" slideSlotActive":""}`,className:`d-ext-mediaSlider-slidesContainer__slide${p===Q?"--active":""}`,children:s.jsx(M,{styles:[fr.getSlideSlot(e)],children:s.jsx(Jl,{...a,...$,contentAnimationMode:S.includes(Q)?"anim-active":"anim-idle",outOFViewPort:!S.includes(Q)})})},Q))})})},ih=e=>{const t=b.useRef(e),n=b.useRef();return t.current!==e&&(n.current=t.current,t.current=e),n.current},gN=e=>({setStyle:r=>{e.current!==null&&Object.assign(e.current.style,r)},resetStyle:r=>{e.current!==null&&r.forEach(o=>{Object.assign(e.current.style,{[o]:null})})}}),vN=({wrapDirection:e,numberOfSlides:t,currentSlideIndex:n,lastSlideIndex:r,slidesInFrame:o})=>{let i="",a="";return e==="toLast"?(i="-0%",a=`-${(t+1)*100}%`):e==="toFirst"?(i=`-${(t+1)*100}%`,a="0%"):(i=`-${n*100/o}%`,a=`-${r*100/o}%`),{startPosition:i,endPosition:a}},xN=(e,t)=>{const n=ih(e),[r,o]=b.useState();return b.useEffect(()=>{n===0&&e===t.length-1&&o("toLast"),n===t.length-1&&e===0&&o("toFirst")},[n,e,t.length]),{wrapDirection:r,resetWrapDirection:()=>{o(void 0)}}},bN=({slideAnimationProps:{slotsInFrame:e,cursor:t,slideAnimationDirection:n="horizontal",layout:r,paginationType:o,suppressAnimation:i=!1},slideProps:a,slidesData:l})=>{const c=b.useRef(null),{setStyle:u,resetStyle:f}=gN(c),p=ih(t),{wrapDirection:d,resetWrapDirection:g}=xN(t,l);b.useEffect(()=>{c.current&&!d&&f(["transitionDuration","left","right"])},[t,p,c.current,d]);const y=n==="horizontal";let C,_;C=[l[l.length-1],...l,l[0]],_=t+1;const x=l.length,m=C.length-e-_,{startPosition:v,endPosition:w}=vN({wrapDirection:d,numberOfSlides:x,currentSlideIndex:_,lastSlideIndex:m,slidesInFrame:e}),S=y?"left":"top",E=y?"right":"bottom",j=new Array(e).fill(null).map((ge,be)=>_+be),[T,z]=b.useState(j),$=ge=>{(ge.propertyName==="left"||ge.propertyName==="up")&&d&&c.current&&(u({transitionDuration:"0ms",[d==="toLast"?"left":"right"]:`-${x*100}%`,[d==="toLast"?"right":"left"]:"-100%"}),setTimeout(()=>{g()},0)),z(j)},Q=oh({paginationType:o,layout:r,slotsInFrame:e}),Se=i?"0.01ms":"1s";return s.jsx(M,{styles:[fr.getContainer(e),{[h.COMMON]:{position:"relative",overflow:"hidden"},mobile:{width:e<3?`${100*e}%`:`${250/3*e}%`}},Q==null?void 0:Q.container],children:s.jsx(M,{ref:c,styles:[fr.filmRole,{[h.COMMON]:{position:"absolute",left:0,top:0,right:0,bottom:0,flexDirection:y?"row":"column",[S]:v,[E]:w,transition:"left, top, right, bottom",transitionDuration:Se,transitionTimingFunction:"ease-in-out"}}],onTransitionEnd:$,"data-auto":"slider-filmRole",children:C.map((ge,be)=>s.jsx(M,{styles:[{[h.COMMON]:{position:"relative",flex:1}}],"data-auto":`slideSlot ${be}${_===be?" slideSlotActive":""}`,className:`d-ext-mediaSlider-slidesContainer__slide${_===be?"--active":""}`,children:s.jsx(M,{styles:[fr.getSlideSlot(e)],children:s.jsx(Jl,{...a,...ge,contentAnimationMode:T.includes(be)?"anim-active":"anim-idle",outOFViewPort:!T.includes(be)})})},be))})})},yN=({totalPages:e,selectedIndex:t=0,autoPagination:n,jumpThreshold:r=5})=>{const[o]=b.useState(()=>ht.getBoolean("runtime.ssr.ssrSlider.jumpThreshold.enabled",!1)),[i,a]=b.useState(t),[l,c]=b.useState(0),[u,f]=b.useState(!1),[p,d]=b.useState(!1),g=b.useRef(),{isInEditor:y}=Sc(),C=ih(i),_=o&&(p||CN(C??i,i,r));b.useEffect(()=>{d(!0),a(t)},[t]);const x=()=>{d(!1),a(S=>{const E=S+1;return E===e?0:E}),c(S=>S-1)},m=()=>{d(!1),a(S=>{const E=S-1;return E===-1?e-1:E}),c(S=>S+1)},v=S=>{d(!0),a(S),c(i-S)},w=()=>{n!=null&&n.on&&(clearInterval(g.current),g.current=Ie().setInterval(()=>{x()},n.intervalInSeconds*1e3))};return b.useEffect(()=>(u&&(y||n!=null&&n.pauseOnHover)||w(),()=>{clearInterval(g.current)}),[n,u]),{cursor:i,restartAutoPagination:w,newEnters:l,suppressAnimation:_,paginationAction:{goToCursor:v,goNext:x,goPrevious:m},onmouseenter:()=>{f(!0)},onmouseleave:()=>{f(!1)},onPageTransitionCompleted:()=>{c(0),d(!1)}}},CN=(e,t,n)=>Math.abs(e-t)>n,wN=40,SN=({onSwipeForward:e,onSwipeBack:t})=>{const n=b.useRef(0);return{handleTouchStart:i=>{n.current=i.changedTouches[0].screenX},handleTouchEnd:i=>{const a=i.changedTouches[0].screenX;Math.abs(a-n.current)<=wN||(a>n.current?e():t())}}},mm=Be({common:{visibility:"hidden",opacity:"0"}},{innerSelector:'[data-grab="pagination-container"]'}),_N=[{common:{paddingInline:0}},Be({common:{display:"none"}},{innerSelector:'[data-grab="pagination-container"]'})],ON=Be({common:{visibility:"visible",opacity:"1",transition:"opacity 300ms ease"}},{pseudoSelector:"hover",innerSelector:'[data-grab="pagination-container"]'}),kN=e=>{const t=[];switch(e){case"onHover":{t.push(mm,ON);break}case"never":{t.push(mm,_N);break}}return t},EN=({animationType:e,props:t})=>{switch(e){case"fade":return s.jsx(hm,{...t});case"slide":return t.slideAnimationProps.slotsInFrame===1&&t.slideAnimationProps.layout==="LAYOUT_3_B"?s.jsx(bN,{...t}):s.jsx(mN,{...t});default:return s.jsx(hm,{...t})}},MN=8,Y2=({slidesData:e,styles:t,paginationType:n,animationType:r=G2.Slide,slotsInFrame:o,selectedIndex:i,autoPagination:a,dataAuto:l,paginationShow:c,arrowStyle:u,layout:f,...p})=>{const{onmouseenter:d,onmouseleave:g,paginationAction:y,cursor:C,newEnters:_,suppressAnimation:x,onPageTransitionCompleted:m,restartAutoPagination:v}=yN({selectedIndex:i,totalPages:e.length,autoPagination:a,jumpThreshold:MN}),{handleTouchStart:w,handleTouchEnd:S}=SN({onSwipeForward:()=>{y.goPrevious(),v()},onSwipeBack:()=>{y.goNext(),v()}}),E={slideAnimationProps:{cursor:C,slotsInFrame:o,newEnters:_,layout:f,paginationType:n,suppressAnimation:x,...p},slideProps:{styles:t.slide,onContentAnimationCompleted:m,...p},slidesData:e};return s.jsxs(M,{styles:[jN,t==null?void 0:t.container,kN(c)],onMouseEnter:d,onMouseLeave:g,"data-auto":l,children:[s.jsx(M,{"data-auto":"slider-slides-container",onTouchStart:w,onTouchEnd:S,styles:[TN,t.slidesContainer],children:EN({animationType:r,props:E})}),s.jsx(qS,{arrowStyle:u,type:n,styles:t==null?void 0:t.pagination,cursor:C,totalPages:e==null?void 0:e.length,...y,thumbList:e.map(j=>j.media??{imgSrc:`${rN}/runtime/ssr-slider/no-image-pagination-thumb.png`})})]})},jN={[h.COMMON]:{height:"100%",alignItems:"center",backgroundRepeat:"no-repeat",backgroundSize:"100%",position:"relative"}},TN={[h.COMMON]:{height:"100%",width:"100%",boxSizing:"border-box"}},AN=["styles","animationType","imageLayout","paginationType","slideAnimationDirection","arrowStyle"],NN=e=>{const t=MC(e,AN),{styles:n}=t;return s.jsx(Y2,{layout:ke.LAYOUT_1,slidesData:[{showButton:!0,button:{text:"a"},uuid:"a",title:"a",desc:"a",media:{imgSrc:"https://du-cdn.cdn-website.com/duda_website/images/home/hp_performance.png?v=17",alt:"a"},linkDomAttributes:{type:"url",href:"https://www.duda.co/"}}],...t,styles:{...n,container:[n.container,IN]},slotsInFrame:1})},IN={[h.COMMON]:{display:"none"}},PN={selectedIndex:0,autoPaginationInterval:3e3,transitionDuration:1,transitionType:L6.slideFromRight,shouldShowImages:!0,shouldShowPaginationOnHover:!1,shouldEnlargeImageOnClick:!0,layout:ke.LAYOUT_1},LN=e=>{var v,w,S,E,j,T,z,$,Q,Se,ge,be,ze,Rt,We,I,U,H,se,P;const t={...PN,...e},{layout:n,_styles:r,slidesData:o,bindingSource:i,slotsInFrame:a,paginationType:l,...c}=t,u=eN()[n],f=l??u.paginationType??on.BULLETS,{styles:p}=u,{styles:d}=((v=nN()[f])==null?void 0:v[n])??{},g=(w=r==null?void 0:r.layoutSpecificStyles)==null?void 0:w[n],y={container:[p.container,d==null?void 0:d.container,r==null?void 0:r.container,g==null?void 0:g.container],slidesContainer:[p.slidesContainer,d==null?void 0:d.slidesContainer],slide:{container:[p.slide_container,d==null?void 0:d.slide_container,r==null?void 0:r.slide_container,g==null?void 0:g.slide_container],button:{root:[(S=p.slide_button)==null?void 0:S.root,(E=d==null?void 0:d.slide_button)==null?void 0:E.root,(j=r==null?void 0:r.slide_button)==null?void 0:j.root,(T=g==null?void 0:g.slide_button)==null?void 0:T.root],text:[(z=p.slide_button)==null?void 0:z.text,($=d==null?void 0:d.slide_button)==null?void 0:$.text,(Q=r==null?void 0:r.slide_button)==null?void 0:Q.text,(Se=g==null?void 0:g.slide_button)==null?void 0:Se.text],rootHover:[(ge=p.slide_button)==null?void 0:ge.rootHover,(be=d==null?void 0:d.slide_button)==null?void 0:be.rootHover,(ze=r==null?void 0:r.slide_button)==null?void 0:ze.rootHover,(Rt=g==null?void 0:g.slide_button)==null?void 0:Rt.rootHover],rootHoverText:[(We=p.slide_button)==null?void 0:We.rootHoverText,(I=d==null?void 0:d.slide_button)==null?void 0:I.rootHoverText,(U=r==null?void 0:r.slide_button)==null?void 0:U.rootHoverText,(H=g==null?void 0:g.slide_button)==null?void 0:H.rootHoverText],buttonTypeCSSClass:(se=r==null?void 0:r.slide_button)==null?void 0:se.buttonTypeCSSClass},title:[p.slide_title,d==null?void 0:d.slide_title,r==null?void 0:r.slide_title,g==null?void 0:g.slide_title],mediaContainer:[p.slide_mediaContainer,d==null?void 0:d.slide_mediaContainer,r==null?void 0:r.slide_mediaContainer,g==null?void 0:g.slide_mediaContainer],contentContainer:[p.slide_contentContainer,d==null?void 0:d.slide_contentContainer,r==null?void 0:r.slide_contentContainer,g==null?void 0:g.slide_contentContainer],desc:[p.slide_desc,d==null?void 0:d.slide_desc,r==null?void 0:r.slide_desc,g==null?void 0:g.slide_desc],media:[p.slide_media,d==null?void 0:d.slide_media,r==null?void 0:r.slide_media,g==null?void 0:g.slide_media],overlay:[p.slide_overlay,d==null?void 0:d.slide_overlay,r==null?void 0:r.slide_overlay,g==null?void 0:g.slide_overlay]},pagination:{container:[p.pagination_container,d==null?void 0:d.pagination_container,r==null?void 0:r.pagination_container,g==null?void 0:g.pagination_container],buttonArrow:[p.pagination_buttonArrow,d==null?void 0:d.pagination_buttonArrow,r==null?void 0:r.pagination_buttonArrow,g==null?void 0:g.pagination_buttonArrow],buttonBullet:[p.pagination_buttonBullet,d==null?void 0:d.pagination_buttonBullet,r==null?void 0:r.pagination_buttonBullet,g==null?void 0:g.pagination_buttonBullet],buttonBulletActive:[p.pagination_buttonBulletActive,d==null?void 0:d.pagination_buttonBulletActive,r==null?void 0:r.pagination_buttonBulletActive,g==null?void 0:g.pagination_buttonBulletActive],thumbsContainer:[p.pagination_thumbsContainer,d==null?void 0:d.pagination_thumbsContainer,r==null?void 0:r.pagination_thumbsContainer,g==null?void 0:g.pagination_thumbsContainer],buttonThumb:[p.pagination_buttonThumb,d==null?void 0:d.pagination_buttonThumb,r==null?void 0:r.pagination_buttonThumb,g==null?void 0:g.pagination_buttonThumb],buttonThumbActive:[p.pagination_buttonThumbActive,d==null?void 0:d.pagination_buttonThumbActive,r==null?void 0:r.pagination_buttonThumbActive,g==null?void 0:g.pagination_buttonThumbActive]}},[C,_]=b.useState();b.useEffect(()=>{if(i)return Bp.listenWithReplay("selected-image-changed",i,R=>_(R.detail.newIndex))},[i,_]);const x={...c,...u,styles:y,selectedIndex:C??c.selectedIndex,paginationType:f},m=u.strictSlotsInFrame??a??u.defaultSlotsInFrame??1;return s.jsxs(M,{style:{height:"100%",overflow:"hidden"},"data-auto":"slider-wrapper",className:"d-ext-mediaSlider-slidesContainer",children:[o.length===0?s.jsx(Dp,{}):s.jsx(Y2,{...x,layout:n,paginationShow:c.paginationShow,slidesData:o,autoPagination:c.autoPagination&&{...c.autoPagination,on:c.overrideAutoPaginationOn??((P=c.autoPagination)==null?void 0:P.on)},dataAuto:"actual-slider",slotsInFrame:m}),$e.isEditor&&s.jsx(NN,{...x})]})},RN=_t({Comp:LN,componentName:"RuntimeSlider",logProps:!0}),$N=[Qe.Cart,Qe.Breadcrumbs],DN={[Qe.Slider]:RN,[Qe.Cart]:Uk,[Qe.Breadcrumbs]:R6,[Qe.AddToCart]:AS,[Qe.OptionsVariations]:HM,[Qe.RuntimeFilterSort]:nM,[Qe.CollectionSearch]:LE,[Qe.ProductPrice]:qA,[Qe.ProductPriceOptions]:$A,[Qe.Accordion]:Nw,[Qe.CalBooking]:Lk,[Qe.ProductCustomizations]:OA,[Qe.FormFileInput]:EM,[Qe.OrderConfirmation]:ET},ah=e=>DN[e],q2=(e,t,n)=>{var o;const r=Q3.getWidgetStore(e);r.legacyWidget=$N.includes(n)||!!((o=r.model.styles)!=null&&o.rules),r.mergeModel(t),r.setInitialProps(t,e)};function BN(e){const t=ah(e.type);return!(t!=null&&t.skipHydration)}function sh(e){return`ssrWrap-${e}`}const gm=new Set,zN=(e,t)=>{var r;if(!ht.getBoolean("runtime.ssr.log.showHydrationDiff",!1))return{};try{const o=e.replace(/]*>[\s\S]*?<\/script>/gi,""),i=((r=document.getElementById(sh(t)))==null?void 0:r.outerHTML)||"null";return{preHydration:o,postHydration:i}}catch(o){return{preHydration:e,postHydration:`Error while getting post-hydration markup: ${o}`}}},FN=(e,t,n,r,o)=>{if(!ht.getBoolean("runtime.ssr.log.showHydrationErrors",!0)||gm.has(o))return;gm.add(o);const{Parameters:a}=Ie(),l=a==null?void 0:a.isInEditor,c={message:"SSR hydration mismatch between server and client render",error:t,errorInfo:n,widget:r,siteAlias:a==null?void 0:a.SiteAlias,isEditor:l,...zN(e,o)};l?Ne.debug(c):Ne.warn(c)};function UN({type:e,props:t,id:n,observer:r},{markupId:o=n}){t._styles=(t==null?void 0:t._styles)||{};const i=ah(e);if(i&&n&&o&&document.getElementById(n)){r&&q2(n,t,e);const a=r?s.jsx(t6,{Component:i,widgetId:n}):s.jsx(i,{...t,widgetId:n}),l=document.getElementById(sh(n));if(l){const c=l.outerHTML;Nv(l,a,{onRecoverableError:(u,f)=>FN(c,u,f,e,n)})}}}const HN=({type:e,props:t,id:n})=>{const r=ah(e);if(r&&n&&document.getElementById(n)){q2(n,t,e);const o=document.getElementById(n);Iv(o).render(s.jsx(t6,{Component:r,widgetId:n}))}},ru=(e,{observer:t=!1,markupId:n=e.id,asyncHydration:r=!!window.requestIdleCallback}={})=>{const o=()=>{UN({...e,observer:t},{markupId:n})};r?requestIdleCallback(o):o()},X2=e=>{ru(e,{observer:!0})},WN=(e=[])=>{e.forEach(t=>ru(t))},VN=(e=[])=>{e.forEach(t=>X2(t))},GN=({id:e,type:t,props:n,model:r})=>{HN({id:e,type:t,props:n,model:r,observer:!0})},KN=e=>e.some(t=>BN(t));function YN(e,t){let n;const r=e.id,o=document.getElementById(sh(r));if(!o){const a="ssr initiate widget - element not found";throw Ne.warn({msg:a,tags:["__new-runtime__"],widgetId:r}),new Error(a)}new IntersectionObserver(a=>{if(n)return;a.some(c=>c.isIntersecting)&&(ru(e,{observer:t}),n=!0)}).observe(o)}window.SSRRuntime={RuntimeReactHelpers:{hydrate:ru,hydrateObserverWidget:X2,hydrateAll:WN,hydrateAllObserverWidgets:VN,renderObserver:GN,shouldHydrateOnRuntime:KN,initiateWidget:YN}};var xm,bm;typeof window<"u"&&((bm=(xm=window==null?void 0:window.getDeferred)==null?void 0:xm.call(window,"ssrLibrariesLoaded"))==null||bm.resolve());export{XN as P,q6 as _,Aa as a,gs as d,s as j,b as r,ZN as s,Ce as v}; //# sourceMappingURL=runtime-react.js.map